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

Method onFocusIn

src/aria/private/listbox/listbox.ts:249–255  ·  view source on GitHub ↗
(event?: FocusEvent)

Source from the content-addressed store, hash-verified

247 }
248
249 onFocusIn(event?: FocusEvent) {
250 this.hasBeenInteracted.set(true);
251
252 if (event) {
253 this.listBehavior.sync(this._getItem(event));
254 }
255 }
256
257 /**
258 * Sets the listbox to it's default initial state.

Callers 1

listbox.spec.tsFile · 0.45

Calls 3

_getItemMethod · 0.95
setMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected