From 57a00bedf4e578d8d4732cfc62f8dc9bb8caea1e Mon Sep 17 00:00:00 2001 From: Subhasree Date: Sat, 18 May 2024 23:49:06 +0530 Subject: [PATCH] Backspace event issue in input otp control for mobile phone is fixed --- 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 8b52ecf6c72..521db940778 100644 --- a/src/app/components/inputotp/inputotp.ts +++ b/src/app/components/inputotp/inputotp.ts @@ -284,7 +284,7 @@ export class InputOtp implements AfterContentInit { return; } - switch (event.code) { + switch (event.key) { case 'ArrowLeft': this.moveToPrev(event); event.preventDefault();