From 7aabd9d4b16eadbeca19eaf255e583b975fb9099 Mon Sep 17 00:00:00 2001 From: abduQB <164475179+abduQB@users.noreply.github.com> Date: Fri, 22 Mar 2024 13:11:46 +0530 Subject: [PATCH] Fix the integer input from numpad issue --- src/app/components/inputotp/inputotp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/inputotp/inputotp.ts b/src/app/components/inputotp/inputotp.ts index d73be201639..a1a58a3394f 100644 --- a/src/app/components/inputotp/inputotp.ts +++ b/src/app/components/inputotp/inputotp.ts @@ -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(); }