huntabyte / bits-ui

The headless components for Svelte.
https://bits-ui.com
MIT License
953 stars 70 forks source link

Disabled property of Menubar item is not reactive #537

Open vcoppe opened 2 months ago

vcoppe commented 2 months ago

Describe the bug

Setting disabled={$someBooleanStore} on a Menubar.Item does not trigger updates when the store is updated, unless the menu is closed and reopened. I've created a small example that shows that normal HTML buttons update but not the bits-ui component.

Thank you for developing and maintaining this library and shadcn-svelte, it's super smooth to use! Let me know if there is anything I can do to help fixing this.

Reproduction

https://svelte.dev/repl/80a41d66661f46f0a803935a22ef405f?version=4.2.15

Logs

No response

System Info

Tested on Firefox and Chrome with the latest bits-ui version.

Severity

annoyance