From 478885be0fad71c74bbb243fd3b28a3c07f68645 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 19 Apr 2024 11:51:31 +0300 Subject: [PATCH] Fixed #5577 --- 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 2e97f69ff..2a63df934 100755 --- a/components/lib/inputnumber/InputNumber.vue +++ b/components/lib/inputnumber/InputNumber.vue @@ -535,7 +535,7 @@ export default { const isDecimalSign = this.isDecimalSign(char); const isMinusSign = this.isMinusSign(char); - if (['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'].includes(char) || isMinusSign || isDecimalSign) { + if ((Number(char) >= 0 && Number(char) <= 9) || isMinusSign || isDecimalSign) { this.insert(event, char, { isDecimalSign, isMinusSign }); }