Fixed #5034 - Can't paste a decimal value when there is a total value in the input.

pull/5134/head
tugcekucukoglu 2024-01-23 16:54:12 +03:00
parent 037cb178d2
commit 18a8027d99
1 changed files with 1 additions and 1 deletions

View File

@ -693,7 +693,7 @@ export default {
this._decimal.lastIndex = 0; 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) { } else if (end - start === value.length) {
return this.formatValue(text); return this.formatValue(text);
} else if (start === 0) { } else if (start === 0) {