Closed mabar closed 1 year ago
Hello,
I am using your example with item check boxes https://svelte-select-examples.vercel.app/examples/advanced/multi-item-checkboxes It works greats, except when I uncheck an item, event type is 'select', not 'clear'
'select'
'clear'
I have some extra code that depends on difference between select and clear and I wondered if it could be fixed in the lib. If not it is fine, workaround simple condition !Array.isArray(e.detail) && isChecked[e.detail.value]
!Array.isArray(e.detail) && isChecked[e.detail.value]
Thank you
It's not really a clear event that needs to fire, I'd suggest a on:change event on the input checkboxes.
clear
on:change
Okay, thank you. Still trying to figure how this all works :)
Hello,
I am using your example with item check boxes https://svelte-select-examples.vercel.app/examples/advanced/multi-item-checkboxes It works greats, except when I uncheck an item, event type is
'select'
, not'clear'
I have some extra code that depends on difference between select and clear and I wondered if it could be fixed in the lib. If not it is fine, workaround simple condition
!Array.isArray(e.detail) && isChecked[e.detail.value]
Thank you