Merge pull request #3999 from thielpa/fix-currency-euro

InputNumber: fix formatting of currencies with suffix
pull/4084/head
Tuğçe Küçükoğlu 2023-06-23 10:32:22 +03:00 committed by GitHub
commit 1398d98615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -906,7 +906,7 @@ export default {
this._decimal.lastIndex = 0; this._decimal.lastIndex = 0;
if (this.suffixChar) { if (this.suffixChar) {
return val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar; return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar : val1;
} else { } else {
return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1; return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
} }