We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeede22 commit 79cf6f2Copy full SHA for 79cf6f2
src/material/chips/chip-row.ts
@@ -160,6 +160,10 @@ export class MatChipRow extends MatChip implements AfterViewInit {
160
161
_handleClick(event: MouseEvent) {
162
if (!this.disabled && this.editable && !this._isEditing && this._alreadyFocused) {
163
+ // Ensure click event not picked up unintentionally by other listeners, as
164
+ // once editing starts, the source element is detached from DOM.
165
+ event.preventDefault();
166
+ event.stopPropagation();
167
this._startEditing(event);
168
}
169
0 commit comments