You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If min is set to 6 and max to 100 one cannot enter 55, as the 5 key is prevented.
The text was updated successfully, but these errors were encountered:
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
@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.
If min is set to 6 and max to 100 one cannot enter 55, as the 5 key is prevented.
The text was updated successfully, but these errors were encountered: