mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
fix(filter-chip): reflect correct value on click event
This commit is contained in:
parent
33e4293eca
commit
0b4d4c2e07
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user