mirror of
https://github.com/bitwarden/browser
synced 2026-02-19 02:44:01 +00:00
UIF - Prefer signal & change detection (#16940)
This commit is contained in:
@@ -12,6 +12,8 @@ import {
|
||||
|
||||
import { MenuItemDirective } from "./menu-item.directive";
|
||||
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||
@Component({
|
||||
selector: "bit-menu",
|
||||
templateUrl: "./menu.component.html",
|
||||
@@ -20,6 +22,8 @@ import { MenuItemDirective } from "./menu-item.directive";
|
||||
})
|
||||
export class MenuComponent implements AfterContentInit {
|
||||
readonly templateRef = viewChild.required(TemplateRef);
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||
@Output() closed = new EventEmitter<void>();
|
||||
readonly menuItems = contentChildren(MenuItemDirective, { descendants: true });
|
||||
keyManager?: FocusKeyManager<MenuItemDirective>;
|
||||
|
||||
Reference in New Issue
Block a user