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

Method onFocusIn

src/aria/private/grid/widget.ts:131–140  ·  view source on GitHub ↗

Handles focusin events for the widget.

(event: FocusEvent)

Source from the content-addressed store, hash-verified

129
130 /** Handles focusin events for the widget. */
131 onFocusIn(event: FocusEvent): void {
132 // Simple widget does not have activate state.
133 if (this.inputs.widgetType() === 'simple') return;
134
135 // Set activate state if the focus is inside of widget.
136 const focusTarget = event.target as Element;
137 if (this.widgetHost().contains(focusTarget) && this.widgetHost() !== focusTarget) {
138 this.activate(event);
139 }
140 }
141
142 /** Handles focusout events for the widget. */
143 onFocusOut(event: FocusEvent): void {

Callers

nothing calls this directly

Calls 1

activateMethod · 0.95

Tested by

no test coverage detected