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:
173173 mdc-chip__icon mdc-chip__icon--trailing` ,
174174 '[tabIndex]' : 'tabIndex' ,
175175 'role' : 'button' ,
176- '(click)' : 'interaction.next ($event)' ,
176+ '(click)' : '_handleClick ($event)' ,
177177 '(keydown)' : 'interaction.next($event)' ,
178178
179179 // We need to remove this explicitly, because it gets inherited from MatChipTrailingIcon.
@@ -196,6 +196,13 @@ export class MatChipRemove extends _MatChipRemoveMixinBase implements CanDisable
196196 }
197197 }
198198
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+
199206 static ngAcceptInputType_disabled : BooleanInput ;
200207 static ngAcceptInputType_tabIndex : NumberInput ;
201208}
You can’t perform that action at this time.
0 commit comments