-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datagrid: Mask for a large number is incorrectly transposing the number #5318
Comments
Is this from before or after fixing #5308 ? I.E. Can you try NG 9.5.1 with the fix? |
Sure, I can retest with NG 9.5.1 |
Still see the issue i tested it with the fix too. FYI max supported number is 18.6 https://github.com/infor-design/enterprise/blob/main/src/utils/number.js#L49 So this should work. Taking a look |
We also saw some weirdness, where if the last two digits were 71 it would be changed to 60. So: 123456789012345671 -> 123456789012345660 |
FYI the issue is this number is outside whats supported in JS.
I think to fix we can make parseNumber use a string. |
Accidentally pushed the fix to main directly so no PR. Steps to test: 5a5c1b2
|
this is now working as expected. thank you |
Describe the bug
When entering a large integer number into a list cell, the entered value is being incorrectly transformed with the applied mask. An 18 digit integer number is being transformed from 123456789012345678 into 123456789012345680.
Steps to reproduce the behavior:
Expected behavior
Mask is correctly applied to the integer number
Version
Additional context
This is a critical issue for Landmark since the user is unable to enter say a Batch Number correctly or to filter on an 18 digit Batch Number.
Seems to be related to #5308,
Is an issue for both List and Form. For the form example could use the following...
Goto https://master-enterprise.demo.design.infor.com/components/locale/test-format-big-negative.html
Enter the value of 123456789012345678
Click on the Format button
The text was updated successfully, but these errors were encountered: