Fixed #1542 - InputNumber: setting "min" to anything greater than 0 implies "required"

pull/1544/head
mertsincan 2021-09-13 11:32:29 +03:00
parent a3979ad0f5
commit 3039690bef
1 changed files with 4 additions and 4 deletions

View File

@ -776,6 +776,10 @@ export default {
return false;
},
validateValue(value) {
if (value === '-' || value == null) {
return null;
}
if (this.min != null && value < this.min) {
return this.min;
}
@ -784,10 +788,6 @@ export default {
return this.max;
}
if (value === '-') { // Minus sign
return null;
}
return value;
},
updateInput(value, insertedValueStr, operation, valueStr) {