Skip to content

Commit

Permalink
Merge pull request #3999 from thielpa/fix-currency-euro
Browse files Browse the repository at this point in the history
InputNumber: fix formatting of currencies with suffix
  • Loading branch information
tugcekucukoglu authored Jun 23, 2023
2 parents 0991a15 + 64579b8 commit 1398d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/inputnumber/InputNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1398d98

Please sign in to comment.