-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabled and onClick prop does not exist in Listbox.Button #2315
Comments
Hey! Thank you for your bug report! Can you please attach a minimal reproduction repo that shows the issue? Can't seem to reproduce this: https://codesandbox.io/s/suspicious-pine-8lqnlo?file=/src/App.tsx:768-810 |
I see, we did make some changes to our TypeScript types to make them more correct. If this used to work then something else was going on. If you want to disable the I've updated your CodeSandbox with this change: https://codesandbox.io/s/romantic-maria-d5u1k8?file=/src/App.tsx For example, this is on 1.7.11, and while it's true that the type isn't complaining, the Hope this helps! |
What is the solution for the On 1.7.12 we receive this error:
|
I'm getting a similar typescript error after upgrading to 1.7.12 on the Popover.Button component. It's complaining about the
I suppose I'll downgrade for now. |
getting similar on disclosure
@RobinMalfait please reopen this issue it hasn't been fixed |
@arpitjacob that's a different issue that should be solved by #2329 |
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
1.7.12
Describe your issue
After updating headless to version 1.7.12 from 1.7.11 typescript starts throwing errors about disable and onClick props in Listbox.Button. In the previous version everything worked as expected. After the version downgrade the code works.
The text was updated successfully, but these errors were encountered: