You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Toolbar component, (and maybe others that accept type="multiple" might need a similar fix as this. Although the real issue seems like it's related to when the onValueChange callback is called since I'm seeing it called multiple times for 1 change.
Describe the bug
First off, thank you for this wonderful library!
I'm seeing the same behavior for the Toolbar component as in #73.
When using type="multiple", I'm seeing the Toolbar.Group onValueChange callback fired once upon init and multiple times on each change.
E.g.
The Toolbar component, (and maybe others that accept type="multiple" might need a similar fix as this. Although the real issue seems like it's related to when the onValueChange callback is called since I'm seeing it called multiple times for 1 change.
https://github.com/huntabyte/bits-ui/pull/184/files#diff-1729c77e94aa549e7182aaca8513c234217d3026b2a7ed653e1a208ed2b35703R56
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-ylyzdx?file=src%2Froutes%2F%2Bpage.svelte
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: