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

Manually passthrough attrs for Combobox, Listbox and TabsGroup component #1372

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

RobinMalfait
Copy link
Member

Due to the return of the Fragment (for form compatibility) the
attributes will now be pass onto this Fragment instead of the underlying
DOM node. To fix this, we disable the inheritAttrs magic, and
passthrough the attributes to the correct component.

Fixes: #1369

@vercel
Copy link

vercel bot commented Apr 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview Apr 27, 2022 at 9:37PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview Apr 27, 2022 at 9:37PM (UTC)

Due to the return of the Fragment (for form compatibility) the
attributes will now be pass onto this Fragment instead of the underlying
DOM node. To fix this, we disable the `inheritAttrs` magic, and
passthrough the attributes to the correct component.
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 this pull request may close these issues.

Listbox as="div" is still a fragment
1 participant