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

Method onFocusIn

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

Handles focusin events for the widget.

(event: FocusEvent)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

activateMethod · 0.95
_getEventTargetFunction · 0.90

Tested by

no test coverage detected