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

Method onFocusIn

src/aria/private/tree/tree.ts:448–454  ·  view source on GitHub ↗

Handles focusin events on the tree.

(event?: FocusEvent)

Source from the content-addressed store, hash-verified

446
447 /** Handles focusin events on the tree. */
448 onFocusIn(event?: FocusEvent) {
449 this.hasBeenInteracted.set(true);
450
451 if (event) {
452 this.treeBehavior.sync(this._getItem(event));
453 }
454 }
455
456 /** Navigates to the given tree item in the tree. */
457 goto(e: PointerEvent, opts?: SelectOptions) {

Callers 1

tree.spec.tsFile · 0.45

Calls 3

_getItemMethod · 0.95
setMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected