From 032af1602eefd7b50ba9b58a315a11bc307f21dc Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 31 May 2021 20:25:05 +0200 Subject: [PATCH] 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. --- src/material/chips/chip.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/material/chips/chip.ts b/src/material/chips/chip.ts index bc3851beb13c..ff9a221eba77 100644 --- a/src/material/chips/chip.ts +++ b/src/material/chips/chip.ts @@ -378,8 +378,6 @@ export class MatChip extends _MatChipMixinBase implements FocusableOption, OnDes _handleClick(event: Event) { if (this.disabled) { event.preventDefault(); - } else { - event.stopPropagation(); } }