Fixed #5034 - Can't paste a decimal value when there is a total value in the input.
parent
037cb178d2
commit
18a8027d99
|
@ -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…
Reference in New Issue