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

Method _handleClick

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

Source from the content-addressed store, hash-verified

134 override _isPrimary = false;
135
136 override _handleClick(event: MouseEvent): void {
137 if (!this.disabled) {
138 event.stopPropagation();
139 event.preventDefault();
140 this._parentChip.remove();
141 }
142 }
143
144 override _handleKeydown(event: KeyboardEvent) {
145 if ((event.keyCode === ENTER || event.keyCode === SPACE) && !this.disabled) {

Callers

nothing calls this directly

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected