Skip to content

Commit 032af16

Browse files
committed
fix(material/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 ade0901 commit 032af16

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/material/chips/chip.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,6 @@ export class MatChip extends _MatChipMixinBase implements FocusableOption, OnDes
378378
_handleClick(event: Event) {
379379
if (this.disabled) {
380380
event.preventDefault();
381-
} else {
382-
event.stopPropagation();
383381
}
384382
}
385383

0 commit comments

Comments
 (0)