mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
[PM-7278] Fix undefined reference to keyManager within menu-trigger-for directive (#8614)
This commit is contained in:
@@ -88,12 +88,12 @@ export class MenuTriggerForDirective implements OnDestroy {
|
|||||||
}
|
}
|
||||||
this.destroyMenu();
|
this.destroyMenu();
|
||||||
});
|
});
|
||||||
this.menu.keyManager.setFirstItemActive();
|
if (this.menu.keyManager) {
|
||||||
this.keyDownEventsSub =
|
this.menu.keyManager.setFirstItemActive();
|
||||||
this.menu.keyManager &&
|
this.keyDownEventsSub = this.overlayRef
|
||||||
this.overlayRef
|
|
||||||
.keydownEvents()
|
.keydownEvents()
|
||||||
.subscribe((event: KeyboardEvent) => this.menu.keyManager.onKeydown(event));
|
.subscribe((event: KeyboardEvent) => this.menu.keyManager.onKeydown(event));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private destroyMenu() {
|
private destroyMenu() {
|
||||||
|
|||||||
Reference in New Issue
Block a user