prevent firing change when typing numbers < min

This commit is contained in:
Sergio Crisostomo 2017-10-27 08:40:11 +02:00
parent 7d25930aec
commit a892ba6ac0

View file

@ -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) {