1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-23 16:13:21 +00:00

[CL-303] Prevent chip menu from running offscreen (#11348)

This commit is contained in:
Victoria League
2024-10-07 11:27:16 -04:00
committed by GitHub
parent e24ddae5b9
commit ad7cf7de15
4 changed files with 24 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ export class MenuItemDirective implements FocusableOption {
@Input({ transform: coerceBooleanProperty }) disabled?: boolean = false;
constructor(private elementRef: ElementRef) {}
constructor(public elementRef: ElementRef<HTMLButtonElement>) {}
focus() {
this.elementRef.nativeElement.focus();