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 type on Tabs component Vue #912

Merged
merged 3 commits into from
Nov 5, 2021
Merged

Fix type on Tabs component Vue #912

merged 3 commits into from
Nov 5, 2021

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Nov 5, 2021

The Tab component should have a type="button" if the used component is a button (default) and if the button didn't have a type component already.

This was not the case yet for this specific component, but we do have a hook for this that resolves the correct type. This PR will use that hook to correctly update the type if it doesn't exist yet.

@vercel
Copy link

vercel bot commented Nov 5, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

headlessui-react – ./packages/@headlessui-react

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/6ATQms6Rz9FDVvFyeTdZvQVpNHaq
✅ Preview: https://headlessui-react-git-fix-button-type-tailwindlabs.vercel.app

headlessui-vue – ./packages/@headlessui-vue

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/5zJq2FHWKzJU3UfxAvAp1XQwm9oA
✅ Preview: https://headlessui-vue-git-fix-button-type-tailwindlabs.vercel.app

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.

1 participant