Skip to content

Commit

Permalink
Fix the integer input from numpad issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abduQB authored Mar 22, 2024
1 parent b72fb02 commit 7aabd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/inputotp/inputotp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export class InputOtp implements AfterContentInit {
break;

default:
if (this.integerOnly && !(event.keyCode >= 48 && event.keyCode <= 57)) {
if (this.integerOnly && !((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105))) {
event.preventDefault();
}

Expand Down

0 comments on commit 7aabd9d

Please sign in to comment.