Skip to content

Commit

Permalink
fix: setTimeout for focus in dropdown
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Artamonova <[email protected]>
Signed-off-by: Maude Laflamme <[email protected]>
  • Loading branch information
mt-anna authored and MaudeLaflamme committed Jan 20, 2025
1 parent 3bd57fd commit 0cf8565
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export class BaoDropdownMenuTrigger implements AfterViewInit, OnDestroy {
);
this.menu.isClosedByKeyEvent.subscribe(() => {
this.closeMenu();
this.nativeElement.focus();
setTimeout(() => this.nativeElement.focus(), 50);
});
}

Expand Down

0 comments on commit 0cf8565

Please sign in to comment.