InputNumber - Can't add decimal with the dot when G format is set

Posted by: corentin on 2 July 2024, 3:28 am EST

  • Posted 2 July 2024, 3:28 am EST

    Hello,

    Within a FR-fr culture context, the N format allows for decimal character to be added with either a comma or a dot keypress.

    With the G format, only comma is allowed. This is likely a bug

    Expected behaviour :

    Dot keypress should add the decimal character to the input.

    Thanks.

  • Posted 3 July 2024, 4:03 am EST

    Hello,

    As you may already know, in French, a comma is used as the decimal separator instead of a period. Therefore, it is by design to use commas instead of dots in Wijmo’s InputNumber control.

    Regarding the change in behavior for ‘G’ and ‘n’ formats we are unable to replicate the issue at our end, could you please refer to the below sample used to replicate the issue and let us know if any changes are required to replicate the issue at our end?

    If you are facing the issue only in your application and not in the below-shared sample, it might be possible that the issue is caused due to some other factors in your application therefore I would request you to please share a small sample replicating the issue.

    Sample link: https://stackblitz.com/edit/js-x4zjbv?file=index.js

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels