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

Method onContainerClick

src/material/chips/chip-grid.ts:315–319  ·  view source on GitHub ↗

* Implemented as part of MatFormFieldControl. * @docs-private

(event: MouseEvent)

Source from the content-addressed store, hash-verified

313 * @docs-private
314 */
315 onContainerClick(event: MouseEvent) {
316 if (!this.disabled && !this._originatesFromChip(event)) {
317 this.focus();
318 }
319 }
320
321 /**
322 * Focuses the first chip in this chip grid, or the associated input when there

Callers

nothing calls this directly

Calls 2

focusMethod · 0.95
_originatesFromChipMethod · 0.80

Tested by

no test coverage detected