MCPcopy Create free account
hub / github.com/angular/components / setDefaultStateEffect

Method setDefaultStateEffect

src/aria/private/menu/menu.ts:559–565  ·  view source on GitHub ↗

Sets the default active state of the menubar before receiving interaction for the first time.

()

Source from the content-addressed store, hash-verified

557
558 /** Sets the default active state of the menubar before receiving interaction for the first time. */
559 setDefaultStateEffect(): void {
560 if (this.hasBeenInteracted()) return;
561
562 if (this.inputs.items().length > 0) {
563 this.setDefaultState();
564 }
565 }
566
567 /** Handles keyboard events for the menu. */
568 onKeydown(event: KeyboardEvent) {

Callers

nothing calls this directly

Calls 1

setDefaultStateMethod · 0.95

Tested by

no test coverage detected