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

Fix condition for isValidNumber in NumberInput #6985

Merged

Conversation

richardboehme
Copy link
Contributor

Previously values that only contain a minus would have been considered valid which triggers things like min/max clamping even though it should not.

According to the types value should always be a string and never undefined which made it easier to collapse the conditions into one. This fixed my reproduction script that was posted in the issue.

Fixes #6969

Previously values that only contain a minus would have been considered
valid which triggers things like min/max clamping even though it
should not.

Fixes mantinedev#6969
@rtivital rtivital merged commit 1dce6ac into mantinedev:master Oct 16, 2024
1 check passed
@rtivital
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

NumberInput with minimum broke since 7.13.2
2 participants