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

Method deselectValue

src/cdk/listbox/listbox.ts:540–545  ·  view source on GitHub ↗

* Deselect the given value. * @param value The value to deselect

(value: T)

Source from the content-addressed store, hash-verified

538 * @param value The value to deselect
539 */
540 deselectValue(value: T) {
541 if (this._invalid) {
542 this.selectionModel.clear(false);
543 }
544 this.selectionModel.deselect(value);
545 }
546
547 /**
548 * Set the selected state of all options.

Callers 1

deselectMethod · 0.95

Calls 2

clearMethod · 0.65
deselectMethod · 0.65

Tested by

no test coverage detected