From 18a8027d9911582423c5ec6e02a93d92f0f51a08 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Tue, 23 Jan 2024 16:54:12 +0300 Subject: [PATCH] Fixed #5034 - Can't paste a decimal value when there is a total value in the input. --- components/lib/inputnumber/InputNumber.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/inputnumber/InputNumber.vue b/components/lib/inputnumber/InputNumber.vue index 65e63166d..c1daf2518 100755 --- a/components/lib/inputnumber/InputNumber.vue +++ b/components/lib/inputnumber/InputNumber.vue @@ -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) {