-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Leading zero NumberInput behavior less intuitive in v7 compared to v6 #6232
Labels
Fixed patch
Completed issues that will be published with next patch (1.0.X)
Comments
rtivital
added a commit
that referenced
this issue
May 24, 2024
rtivital
added a commit
that referenced
this issue
May 24, 2024
rtivital
added
the
Fixed patch
Completed issues that will be published with next patch (1.0.X)
label
May 24, 2024
Fixed in 7.10.1 |
This was referenced Jun 22, 2024
This was referenced Jul 5, 2024
This was referenced Jul 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.9.1
What package has an issue?
@mantine/core
What framework do you use?
create-react-app (CRA)
In which browsers you can reproduce the issue?
Chrome
Describe the bug
Summary
The behavior with leading zero while editing changed in v7, the field value changes before blur which is disturbing in some cases.
100
to200
by removing1
and replacing by2
v6: can remove only one character and replace it
v7: removing one character removes all leading zeros
Case 2 : Change
0.1
to0.2
by removing1
and replacing by2
v6: can remove only
1
character and replace it with2
v7: removing the
1
charater removes also the decimal separatorCase 3 : Typing
0123
v6: can type
0123
the value changes only on blurv7: can't type
0123
the value changes while typingAll the gifs have been produced using the mantine.dev doc versions :
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
No response
Self-service
The text was updated successfully, but these errors were encountered: