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

Method onFocusOut

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

Handles focusout events for the cell.

(event: FocusEvent)

Source from the content-addressed store, hash-verified

136
137 /** Handles focusout events for the cell. */
138 onFocusOut(event: FocusEvent): void {
139 const blurTarget = _getEventTarget<Element>(event);
140 const widget = this.inputs.getWidget(blurTarget);
141
142 // Pass down focusout event to the widget.
143 widget?.onFocusOut(event);
144
145 const focusTarget = event.relatedTarget as Element | null;
146 if (this.element().contains(focusTarget)) return;
147
148 this.isFocused.set(false);
149 }
150
151 /** Focuses the cell or the active widget. */
152 focus(): void {

Callers

nothing calls this directly

Calls 3

_getEventTargetFunction · 0.90
setMethod · 0.80
elementMethod · 0.45

Tested by

no test coverage detected