mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
fix(InputNumber): formatting of currencies with suffix
This commit is contained in:
parent
f7531d5c67
commit
64579b8e66
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue