-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Bug]: Vue 3.1: CSS classes aren't applied as expected (MenuItem
, Switch
, and possibly others)
#603
Comments
MenuItem
until you hover them
MenuItem
until you hover themMenuItem
until you hover them
I've narrowed it down a bit. There seems to be a breaking change in Vue 3.1. Everything works fine with 3.0.11, but as soon as I bump to 3.1.0 or 3.1.1 this issue appears. |
There looks to be a few issues with HeadlessUI x Vue 3.1+.
The |
MenuItem
until you hover themMenuItem
, Switch
, and possibly others)
I can confirm this for the listbox component as well.
|
Fixed in #607 |
|
@liho00 This should be fixed, and will be available in the next release. |
yup the solution is in the dev branch, thanks its working now! |
Thanks, I was going crazy thinking I implemented it the wrong way :-) |
Thanks for fix |
@RobinMalfait do you happen to know when the next release is planned? |
Relieved I'm not the only one experiencing this– thought I was going crazy. Thanks for fixing! |
I just updated headlessui/vue and it seems to be fixed! 🎈 |
Hi! I'm seeing this issue with Listbox on 1.4.0 and dev and vue 3.2.2 |
Still seeing this.. |
What package within Headless UI are you using?
@headlessui/vue
What version of that package are you using?
v1.2.0
What browser are you using?
Chrome
Reproduction repository
https://github.com/hognevevle/headlessui-bug/tree/missing-classes
Describe your issue
This error appears when after the latest package upgrades done in the linked repo. In the prior commit, everything works OK.
In the inspector, I see that the
class
attribute is empty. As soon as you hover the item, however, the classes will appear as they should.Might be worth mentioning that in my other project (where I have vue-router installed), a
router-link
will render properly. So it appears to depend on the kind of child.The text was updated successfully, but these errors were encountered: