mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5034 - Can't paste a decimal value when there is a total value in the input.
This commit is contained in:
parent
037cb178d2
commit
18a8027d99
1 changed files with 1 additions and 1 deletions
|
@ -693,7 +693,7 @@ export default {
|
|||
|
||||
this._decimal.lastIndex = 0;
|
||||
|
||||
return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
|
||||
return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : this.formatValue(text) || value;
|
||||
} else if (end - start === value.length) {
|
||||
return this.formatValue(text);
|
||||
} else if (start === 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue