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

Method _handleClick

src/material/chips/chip-icons.ts:89–95  ·  view source on GitHub ↗
(event: MouseEvent)

Source from the content-addressed store, hash-verified

87 override _isLeading = true;
88
89 override _handleClick(event: MouseEvent): void {
90 if (!this.disabled) {
91 event.stopPropagation();
92 event.preventDefault();
93 this._parentChip._edit(event);
94 }
95 }
96
97 override _handleKeydown(event: KeyboardEvent) {
98 if ((event.keyCode === ENTER || event.keyCode === SPACE) && !this.disabled) {

Callers

nothing calls this directly

Calls 1

_editMethod · 0.45

Tested by

no test coverage detected