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

Method deactivate

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

Deactivates the widget and restores focus to the widget's host element.

(event?: KeyboardEvent | FocusEvent)

Source from the content-addressed store, hash-verified

190
191 /** Deactivates the widget and restores focus to the widget's host element. */
192 deactivate(event?: KeyboardEvent | FocusEvent): void {
193 if (!this.isActivated()) return;
194
195 this.isActivated.set(false);
196 this.lastDeactivateEvent.set(event);
197 }
198}

Callers 3

onFocusOutMethod · 0.95
grid.spec.tsFile · 0.45

Calls 2

setMethod · 0.80
isActivatedMethod · 0.45

Tested by

no test coverage detected