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
After updating to React 19 following error has begun to appear in my console:
Invalid prop `data-headlessui-state` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.
When direct child of Menu or Listbox elements is a react fragment (my use case is that I am using a function a function for children to access the component's APIs).
Example:
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
For example: v2.2.0
What browser are you using?
For example: Chrome
Reproduction URL
https://codesandbox.io/p/devbox/funny-wood-jtchxm
Describe your issue
After updating to React 19 following error has begun to appear in my console:
When direct child of
Menu
orListbox
elements is a react fragment (my use case is that I am using a function a function for children to access the component's APIs).Example:
There may be other components affected, I did not test.
The text was updated successfully, but these errors were encountered: