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
Hey! Thank you for your bug report!
Much appreciated! 🙏
We recently improved some of our TypeScript types and made them reflect reality better. In this case disabled isn't a prop you can pass to the button. You can see this in your CodeSandbox link as well, the disabled prop is passed but it still works, aka it is not disabled.
If you want to disable the Listbox, then you have to move the disabled prop to the Listbox component itself.
Problems with type for Listbox.Button "disabled" property.
(v1.7.11 it's OK)
Example:
https://codesandbox.io/s/headless-ui-listbox-disabled-button-bug-gzlo5b?file=/src/App.tsx
Error:
The text was updated successfully, but these errors were encountered: