Skip to content

Commit

Permalink
Merge pull request #14247 from SoyDiego/fix-accessibility-focus-menu
Browse files Browse the repository at this point in the history
fix(Menu): Accessibility rule F85, Lost focus on TAB
  • Loading branch information
cetincakiroglu authored Dec 6, 2023
2 parents 5336e3a + f3a8e18 commit ecd2beb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/components/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,13 +574,11 @@ export class Menu implements OnDestroy {
break;

case 'Escape':
case 'Tab':
if (this.popup) {
DomHandler.focus(this.target);
this.hide();
}
break;

case 'Tab':
this.overlayVisible && this.hide();
break;

Expand Down

0 comments on commit ecd2beb

Please sign in to comment.