Skip to content
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

Listbox as="div" is still a fragment #1369

Closed
bodograumann opened this issue Apr 27, 2022 · 2 comments · Fixed by #1372
Closed

Listbox as="div" is still a fragment #1369

bodograumann opened this issue Apr 27, 2022 · 2 comments · Fixed by #1372

Comments

@bodograumann
Copy link

What package within Headless UI are you using?

@headlessui/vue

What version of that package are you using?

v1.6.0

What browser are you using?

Firefox

Reproduction URL

Listbox example in vue playground

Describe your issue

When using as="div" and attributes meant for the div on the <Listbox>, these can not be rendered correctly. E.g.:

Extraneous non-props attributes (style) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.

@DrJume
Copy link

DrJume commented Apr 27, 2022

Happens to Comboboxes with class attribute aswell since v1.6.0. The class is not applied in the DOM / empty in DevTools.

@RobinMalfait
Copy link
Member

Hey! Thank you for your bug report!
Much appreciated! 🙏

This should be fixed by #1372, and will be available in the next release.

You can already try it using npm install @headlessui/vue@insiders.

I've also updated your Vue playground example with the latest insiders build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants