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

Method onFocusIn

src/aria/private/toolbar/toolbar.ts:212–219  ·  view source on GitHub ↗
(event?: FocusEvent)

Source from the content-addressed store, hash-verified

210 }
211
212 onFocusIn(event?: FocusEvent) {
213 this.hasBeenInteracted.set(true);
214
215 const target = event && _getEventTarget(event);
216 if (target instanceof Element) {
217 this.focusManager.sync(this.inputs.getItem(target));
218 }
219 }
220
221 /** Handles click events for the toolbar. */
222 onClick(event: MouseEvent) {

Callers 1

toolbar.spec.tsFile · 0.45

Calls 4

_getEventTargetFunction · 0.90
setMethod · 0.80
getItemMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected