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

Method onFocusOut

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

Handles focusout events for the widget.

(event: FocusEvent)

Source from the content-addressed store, hash-verified

142
143 /** Handles focusout events for the widget. */
144 onFocusOut(event: FocusEvent): void {
145 const focusTarget = event.relatedTarget as Element;
146 if (this.widgetHost().contains(focusTarget)) return;
147
148 // Reset states when focus leaving widget.
149 this.deactivate(event);
150 }
151
152 /** Focuses the widget's host element. */
153 focus(): void {

Callers

nothing calls this directly

Calls 1

deactivateMethod · 0.95

Tested by

no test coverage detected