Fixed #5329 - inputOTP - integerOnly doesn't work with number pad

pull/5414/head
tugcekucukoglu 2024-03-13 16:52:23 +03:00
parent e806f87559
commit 213267295a
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ export default {
break;
default:
if ((this.integerOnly && !(event.keyCode >= 48 && event.keyCode <= 57)) || (this.tokens.join('').length >= this.length && event.keyCode != 46)) {
if ((this.integerOnly && !((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105))) || (this.tokens.join('').length >= this.length && event.keyCode != 46)) {
event.preventDefault();
}