prevent firing change when typing numbers < min
This commit is contained in:
parent
7d25930aec
commit
a892ba6ac0
1 changed files with 1 additions and 0 deletions
|
@ -263,6 +263,7 @@
|
|||
if (!isNaN(val) && !isEmptyString) {
|
||||
this.currentValue = val;
|
||||
|
||||
if (event.type == 'input' && val < min) return; // prevent fire early in case user is typing a bigger number. Change will handle this otherwise.
|
||||
if (val > max) {
|
||||
this.setValue(max);
|
||||
} else if (val < min) {
|
||||
|
|
Loading…
Add table
Reference in a new issue