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

Method deactivate

src/aria/private/grid/widget.ts:193–198  ·  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

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

Callers 3

onFocusOutMethod · 0.95
grid.spec.tsFile · 0.45

Calls 2

setMethod · 0.80
isActivatedMethod · 0.45

Tested by

no test coverage detected