novacbn / kahi-ui

Straight-forward Svelte UI for the Web
https://kahi-ui.nbn.dev
MIT License
187 stars 5 forks source link

DataSelect indicator doesn't go away as expected on deselect #134

Open scottBowles opened 2 years ago

scottBowles commented 2 years ago

Describe the Bug

Using the DataSelect component with the multiple prop, when I deselect an option the square indicator remains until my next click (at which point it disappears as expected). I can see that the Svelte store I have bound to logic_state updates immediately as expected. It's just the indicator that is out of sync until the next click.

Reproduction

You can see this occurring in the Multiple example at https://kahi-ui.nbn.dev/docs/widgets/dataselect. I first came across this bug locally though, so it isn't just the example.

System Info

Mac using Chrome

Additional Context

No response