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

Method _clearSelection

src/material/chips/chip-listbox.ts:336–342  ·  view source on GitHub ↗

* Deselects every chip in the listbox. * @param skip Chip that should not be deselected.

(skip?: MatChip)

Source from the content-addressed store, hash-verified

334 * @param skip Chip that should not be deselected.
335 */
336 private _clearSelection(skip?: MatChip): void {
337 this._chips.forEach(chip => {
338 if (chip !== skip) {
339 chip.deselect();
340 }
341 });
342 }
343
344 /**
345 * Finds and selects the chip based on its value.

Callers 1

_setSelectionByValueMethod · 0.95

Calls 1

deselectMethod · 0.65

Tested by

no test coverage detected