Skip to content

Commit

Permalink
Backspace event issue in input otp control for mobile phone is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Subhasree committed May 18, 2024
1 parent a1091e7 commit 57a00be
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 @@ -284,7 +284,7 @@ export class InputOtp implements AfterContentInit {
return;
}

switch (event.code) {
switch (event.key) {
case 'ArrowLeft':
this.moveToPrev(event);
event.preventDefault();
Expand Down

0 comments on commit 57a00be

Please sign in to comment.