Skip to content

Commit 462d557

Browse files
committed
fix(chips): don't stop propagation on all click events
Historically we've had to stop propagation on clicks so that clicking on a chip won't move focus to the first chip once the event bubbles up to the list. This isn't necessary as of #12856 which changes how we detect clicks from inside a chip. These changes remove the call since it can prevent people's global click listeners from firing. Fixes #19759.
1 parent e211cab commit 462d557

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/material/chips/chip.ts

-2
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,6 @@ export class MatChip extends _MatChipMixinBase implements FocusableOption, OnDes
360360
_handleClick(event: Event) {
361361
if (this.disabled) {
362362
event.preventDefault();
363-
} else {
364-
event.stopPropagation();
365363
}
366364
}
367365

0 commit comments

Comments
 (0)