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

Method onFocusOut

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

Handles focusout events for the widget.

(event: FocusEvent)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

deactivateMethod · 0.95

Tested by

no test coverage detected