From 999022cacaf1d50122add6e46912208653b960b2 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 7 Sep 2021 17:45:09 +0300 Subject: [PATCH] Fixed #1515 - Negative sign in front of number is not possible for Finnish or Swedish locale --- src/components/inputnumber/InputNumber.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/inputnumber/InputNumber.vue b/src/components/inputnumber/InputNumber.vue index ab4efb1a9..b50eff2e8 100755 --- a/src/components/inputnumber/InputNumber.vue +++ b/src/components/inputnumber/InputNumber.vue @@ -547,7 +547,7 @@ export default { return this.min === null || this.min < 0; }, isMinusSign(char) { - if (this._minusSign.test(char)) { + if (this._minusSign.test(char) || char === '-') { this._minusSign.lastIndex = 0; return true; }