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

Method setDefaultStateEffect

src/aria/private/tree/tree.ts:425–429  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

423
424 /** Sets the default active state of the tree before receiving interaction for the first time. */
425 setDefaultStateEffect(): void {
426 if (this.hasBeenInteracted()) return;
427
428 this.setDefaultState();
429 }
430
431 /** Handles keydown events on the tree. */
432 onKeydown(event: KeyboardEvent) {

Callers 1

tree.spec.tsFile · 0.45

Calls 1

setDefaultStateMethod · 0.95

Tested by

no test coverage detected