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

Method _handleClick

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

Source from the content-addressed store, hash-verified

70 override _isLeading = true;
71
72 override _handleClick(event: MouseEvent): void {
73 if (!this.disabled) {
74 event.stopPropagation();
75 event.preventDefault();
76 this._parentChip._edit(event);
77 }
78 }
79
80 override _handleKeydown(event: KeyboardEvent) {
81 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