We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What package within Headless UI are you using?
@headlessui/vue
What version of that package are you using?
v1.7.16
What browser are you using?
Chrome
Reproduction URL See official example here: https://headlessui.com/vue/menu where it is not working. Codesandbox: https://codesandbox.io/p/sandbox/interesting-hypatia-sjvd9z?file=%2Fsrc%2FApp.vue%3A4%2C23
Describe your issue
According to the section "Using data attributes" https://headlessui.com/vue/menu#using-data-attributes, <MenuItem /> should render with data-headlessui-state="active" when active. It does not.
<MenuItem />
data-headlessui-state="active"
From the documentation:
<!-- Rendered `MenuItems` --> <ul data-headlessui-state="open"> <li data-headlessui-state="">Account settings</li> <li data-headlessui-state="active">Support</li> <li data-headlessui-state="">License</li> </ul>
The text was updated successfully, but these errors were encountered:
I discovered this only works when rendering <MenuItem> via as="someElement".
<MenuItem>
as="someElement"
<!-- Works --> <MenuItem as="button">Test</MenuItem> <!-- Does not work --> <MenuItem><button>Test</button></MenuItem>
Codesandbox: https://codesandbox.io/p/sandbox/interesting-hypatia-sjvd9z?file=%2Fsrc%2FApp.vue%3A4%2C23
Sorry, something went wrong.
Is this a duplicate of #2787 ?
Hey!
Yep that's a duplicate of #2787, you can use the latest insiders version and this problem should go away:
npm install @headlessui/vue@insiders
Hope that helps!
RobinMalfait
No branches or pull requests
What package within Headless UI are you using?
@headlessui/vue
What version of that package are you using?
v1.7.16
What browser are you using?
Chrome
Reproduction URL
See official example here: https://headlessui.com/vue/menu where it is not working.
Codesandbox: https://codesandbox.io/p/sandbox/interesting-hypatia-sjvd9z?file=%2Fsrc%2FApp.vue%3A4%2C23
Describe your issue
According to the section "Using data attributes" https://headlessui.com/vue/menu#using-data-attributes,
<MenuItem />
should render withdata-headlessui-state="active"
when active. It does not.From the documentation:
The text was updated successfully, but these errors were encountered: