Skip to content

Commit

Permalink
Fix TAB navigation in InputOtp component (issue #16653)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Adamczyk committed Oct 28, 2024
1 parent 3f1e943 commit d17bfcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/inputotp/inputotp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ export class InputOtp implements AfterContentInit {
}

onKeyDown(event) {
if (event.key === "Tab") {
return;
}
if (event.altKey || event.ctrlKey || event.metaKey) {
return;
}
Expand Down

0 comments on commit d17bfcb

Please sign in to comment.