From 213267295a77d2f4cec37954e789e4e83af215df Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 13 Mar 2024 16:52:23 +0300 Subject: [PATCH] Fixed #5329 - inputOTP - integerOnly doesn't work with number pad --- components/lib/inputotp/InputOtp.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/inputotp/InputOtp.vue b/components/lib/inputotp/InputOtp.vue index 2d8fde071..859620603 100755 --- a/components/lib/inputotp/InputOtp.vue +++ b/components/lib/inputotp/InputOtp.vue @@ -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(); }