Skip to content

Commit

Permalink
Fixed #5577
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Apr 19, 2024
1 parent 8523ff2 commit 478885b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/inputnumber/InputNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit 478885b

Please sign in to comment.