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

Method setDefaultStateEffect

src/aria/private/menu/menu.ts:212–218  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

210
211 /** Sets the default active state of the menu before receiving interaction for the first time. */
212 setDefaultStateEffect(): void {
213 if (this.hasBeenInteracted() || this.hasBeenHovered()) return;
214
215 if (this.inputs.items().length > 0) {
216 this.setDefaultState();
217 }
218 }
219
220 /** Handles keyboard events for the menu. */
221 onKeydown(event: KeyboardEvent) {

Callers 1

menu.spec.tsFile · 0.45

Calls 1

setDefaultStateMethod · 0.95

Tested by

no test coverage detected