Fixed #1515 - Negative sign in front of number is not possible for Finnish or Swedish locale

pull/1527/head
mertsincan 2021-09-07 17:45:09 +03:00
parent a7c3110a4e
commit 999022caca
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ export default {
return this.min === null || this.min < 0; return this.min === null || this.min < 0;
}, },
isMinusSign(char) { isMinusSign(char) {
if (this._minusSign.test(char)) { if (this._minusSign.test(char) || char === '-') {
this._minusSign.lastIndex = 0; this._minusSign.lastIndex = 0;
return true; return true;
} }