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
Describe your issue
Setting Fragment in the 'as' prop of the Popover worked in v1.5.0 and stopped working in v1.6.0, saying that you pass a ref to the Fragment.
This isn't very good, since there is no good reason for me to wrap a button with a div
The text was updated successfully, but these errors were encountered:
alissaVrk
changed the title
Popover doesn't receive Fragment as value of the 'as' prop
Popover doesn't receive Fragment as value of the 'as' prop since v1.6.0
May 13, 2022
alissaVrk
changed the title
Popover doesn't receive Fragment as value of the 'as' prop since v1.6.0
[Bug v1.6.0] Popover doesn't receive Fragment as value of the 'as' prop
May 13, 2022
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.6.0
What browser are you using?
Chrome
Reproduction URL
https://codesandbox.io/s/headless-ui-switch-forked-3oycet?file=/src/App.js
Describe your issue
Setting Fragment in the 'as' prop of the Popover worked in v1.5.0 and stopped working in v1.6.0, saying that you pass a ref to the Fragment.
This isn't very good, since there is no good reason for me to wrap a button with a div
I have a workaround, not a pretty one:
The text was updated successfully, but these errors were encountered: