From 0b4d4c2e07b4f6be2289733500fbba36de29a2d3 Mon Sep 17 00:00:00 2001 From: vdegenne Date: Tue, 24 Oct 2023 16:46:06 +0200 Subject: [PATCH] fix(filter-chip): reflect correct value on click event --- chips/internal/filter-chip.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chips/internal/filter-chip.ts b/chips/internal/filter-chip.ts index f2371b67da..027ef9dea4 100644 --- a/chips/internal/filter-chip.ts +++ b/chips/internal/filter-chip.ts @@ -90,11 +90,12 @@ export class FilterChip extends MultiActionChip { return; } + this.selected = !this.selected; + const preventDefault = !redispatchEvent(this, event); if (preventDefault) { + this.selected = !this.selected; return; } - - this.selected = !this.selected; } }