Merge pull request #3999 from thielpa/fix-currency-euro
InputNumber: fix formatting of currencies with suffixpull/4084/head
commit
1398d98615
|
@ -906,7 +906,7 @@ export default {
|
|||
this._decimal.lastIndex = 0;
|
||||
|
||||
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 {
|
||||
return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue