Skip to content
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

zero padding issue after options setting decimalScale and fixedDecimalScale. #789

Closed
2 of 7 tasks
EndlessDev2016 opened this issue Sep 1, 2023 · 2 comments
Closed
2 of 7 tasks
Labels

Comments

@EndlessDev2016
Copy link

EndlessDev2016 commented Sep 1, 2023

Describe the issue and the actual behavior

After setting decimalScale and fixedDecimalScale in <NumericFormat /> component, and then "delete"(not backspace) keypress before the decimal point "0" will be added.

Describe the expected behavior

if the delete key before the decimal point, the 0 will not be added in.

Provide a CodeSandbox link illustrating the issue

https://codesandbox.io/s/fixeddecimalscale-demo-forked-cfn3ly?file=/src/App.js

Provide steps to reproduce this issue

  • the cursor 3 digits before the decimal number "123" and delete key
    123,456.12000
    12,356.12000
    1,236.12000
    123.12000

  • the cursor "123" (before the decimal point) and then delete key
    12,312,000.00000

Please check the browsers where the issue is seen

  • Chrome
  • Edge
  • Chrome (Android)
  • Safari (OSX)
  • Safari (iOS)
  • Firefox
  • Firefox (Android)
@s-yadav
Copy link
Owner

s-yadav commented Sep 3, 2023

Fixed on 5.3.1

@s-yadav s-yadav closed this as completed Sep 3, 2023
@ArturKustyaev
Copy link

Please add the ability to move carriages to decimal digits after deleting the digit before the delimiter on the "Delete" key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants