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

Method deselect

src/material/core/option/option.ts:178–187  ·  view source on GitHub ↗

Deselects the option.

(emitEvent = true)

Source from the content-addressed store, hash-verified

176
177 /** Deselects the option. */
178 deselect(emitEvent = true): void {
179 if (this._selected) {
180 this._selected = false;
181 this._changeDetectorRef.markForCheck();
182
183 if (emitEvent) {
184 this._emitSelectionChangeEvent();
185 }
186 }
187 }
188
189 /** Sets focus onto this option. */
190 focus(_origin?: FocusOrigin, options?: FocusOptions): void {

Callers

nothing calls this directly

Calls 2

markForCheckMethod · 0.80

Tested by

no test coverage detected