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

Method setDefaultStateEffect

src/aria/private/tabs/tabs.ts:251–255  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

249
250 /** Sets the default active state of the tablist before receiving interaction for the first time. */
251 setDefaultStateEffect(): void {
252 if (this.hasBeenInteracted()) return;
253
254 this.setDefaultState();
255 }
256
257 /** Handles keydown events for the tablist. */
258 onKeydown(event: KeyboardEvent) {

Callers 1

tabs.spec.tsFile · 0.45

Calls 1

setDefaultStateMethod · 0.95

Tested by

no test coverage detected