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

min and max prevent entering of many numbers if min is more than 1 #52

Open
bjoern-steinborn opened this issue May 7, 2021 · 2 comments

Comments

@bjoern-steinborn
Copy link

If min is set to 6 and max to 100 one cannot enter 55, as the 5 key is prevented.

@bjoern-steinborn bjoern-steinborn changed the title min and max prevents entering of numbers higher than 10 min and max prevent entering of many numbers if min is more than 1 May 7, 2021
@nidhinkumar06
Copy link

@changhuixu Is there any update?

@MarkCuypersPpw
Copy link

@changhuixu
The [min] cannot be used now because there's a e.preventDefault when newNumber < this.min.
Imagine the min is set to 20 and the user starts typing in the input field. When the user wants to type "15", (s)he first enters a "1". This is smaller than this.min, so the keypress is prevented. This way, the user can't type any number into the field, which is the bug.

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

No branches or pull requests

3 participants