File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/material-experimental/mdc-chips Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ const _MatChipRemoveMixinBase:
173
173
mdc-chip__icon mdc-chip__icon--trailing` ,
174
174
'[tabIndex]' : 'tabIndex' ,
175
175
'role' : 'button' ,
176
- '(click)' : 'interaction.next ($event)' ,
176
+ '(click)' : '_handleClick ($event)' ,
177
177
'(keydown)' : 'interaction.next($event)' ,
178
178
179
179
// We need to remove this explicitly, because it gets inherited from MatChipTrailingIcon.
@@ -196,6 +196,13 @@ export class MatChipRemove extends _MatChipRemoveMixinBase implements CanDisable
196
196
}
197
197
}
198
198
199
+ /** Emits a MouseEvent when the user clicks on the remove icon. */
200
+ _handleClick ( event : MouseEvent ) : void {
201
+ this . interaction . next ( event ) ;
202
+
203
+ event . stopPropagation ( ) ;
204
+ }
205
+
199
206
static ngAcceptInputType_disabled : BooleanInput ;
200
207
static ngAcceptInputType_tabIndex : NumberInput ;
201
208
}
You can’t perform that action at this time.
0 commit comments