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
Now the data-headlessui-state attribute is missing completely.
This breaks styling depending upon these data properties, namely the one described at multiple locations in the documentation:
If you are using Tailwind CSS, you can use the @headlessui/tailwindcss plugin to target this attribute with modifiers like ui-open:* and ui-active:*:
Specifically, the commit breaking the functionality is d874e561a1ec4ac65250d76a40cc979cf6983acc , even more specifically, the code replacing the old call to cloneVNode. I found this out by bisecting and testing. I don't know what the correct fix would be though. Maybe @RobinMalfait (or someone else familiar with the code in there) could give some pointers to what needs to be done, then I could even write a PR.
The text was updated successfully, but these errors were encountered:
What package within Headless UI are you using?
@headlessui/vue
@headlessui/tailwindcss
What version of that package are you using?
@headlessui/vue: 1.7.8
@headlessui/tailwindcss: 0.1.3
What browser are you using?
Firefox
Reproduction URL
Non-working example: https://codesandbox.io/p/sandbox/infallible-noyce-g43sfp
Working example: https://codesandbox.io/p/sandbox/determined-lamarr-k36cf6
Describe your issue
Version 1.7.8 of @headlessui/vue broke the data attributes introduced in 1.7. Before, as of 1.7.7, the plugin would generate the following code:
Note the
data-headlessui-state="checked"
attribute here.After upgrading to v1.7.8 (and later versions), the code generated will be this:
Now the
data-headlessui-state
attribute is missing completely.This breaks styling depending upon these data properties, namely the one described at multiple locations in the documentation:
Specifically, the commit breaking the functionality is d874e561a1ec4ac65250d76a40cc979cf6983acc , even more specifically, the code replacing the old call to
cloneVNode
. I found this out by bisecting and testing. I don't know what the correct fix would be though. Maybe @RobinMalfait (or someone else familiar with the code in there) could give some pointers to what needs to be done, then I could even write a PR.The text was updated successfully, but these errors were encountered: