From 3039690bef93a7bf8231c757a8a5c3692e0d9493 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 13 Sep 2021 11:32:29 +0300 Subject: [PATCH] Fixed #1542 - InputNumber: setting "min" to anything greater than 0 implies "required" --- src/components/inputnumber/InputNumber.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/inputnumber/InputNumber.vue b/src/components/inputnumber/InputNumber.vue index b3da79d44..849ef613e 100755 --- a/src/components/inputnumber/InputNumber.vue +++ b/src/components/inputnumber/InputNumber.vue @@ -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) {