Skip to content

Commit

Permalink
fix(filter-chip): reflect correct value on click event
Browse files Browse the repository at this point in the history
  • Loading branch information
vdegenne committed Oct 24, 2023
1 parent 33e4293 commit 0b4d4c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chips/internal/filter-chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 0b4d4c2

Please sign in to comment.