Skip to content

Commit 337634f

Browse files
crisbetommalerba
authored andcommittedJan 26, 2022
fix(material/chips): don't stop propagation on all click events (#19763)
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. (cherry picked from commit 3c5a9b7)
1 parent 02c8f2a commit 337634f

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
@@ -404,8 +404,6 @@ export class MatChip
404404
_handleClick(event: Event) {
405405
if (this.disabled) {
406406
event.preventDefault();
407-
} else {
408-
event.stopPropagation();
409407
}
410408
}
411409

0 commit comments

Comments
 (0)
Please sign in to comment.