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

Fix state data attribute in Vue #2787

Merged
merged 2 commits into from
Oct 4, 2023
Merged

Fix state data attribute in Vue #2787

merged 2 commits into from
Oct 4, 2023

Conversation

thecrypticace
Copy link
Contributor

We accidentally broke the data-headlessui-state="…" attribute in Vue when using as="template". In this situation the attribute would be omitted when it shouldn't be.

This PR fixes that so the @headlessui/tailwindcss plugin works again when using components from Radio Group, Listbox, Combobox, etc… with as="template"

Fixes #2786

@vercel
Copy link

vercel bot commented Oct 4, 2023

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

Name Status Preview Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview Oct 4, 2023 5:31pm
headlessui-vue ✅ Ready (Inspect) Visit Preview Oct 4, 2023 5:31pm

@thecrypticace thecrypticace merged commit 20a224a into main Oct 4, 2023
7 checks passed
@thecrypticace thecrypticace deleted the fix/issue-2786 branch October 4, 2023 17:39
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.

Data attributes for CSS-only state styling broken in v1.7.8
1 participant