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

Ensure Combobox.Label is properly linked when rendered after Combobox.Button and Combobox.Input components #1838

Merged
merged 2 commits into from Sep 8, 2022

Conversation

RobinMalfait
Copy link
Collaborator

Ensure Combobox.Label is properly linked with Combobox.Input and Combobox.Button, even when rendered after these components.
We do require an additional render, but now it happens automatically for you, before that you had to make a change yourself in order to trigger a re-render and "fixing" the missing link.

Fixes: #1836

…omponents

Even when rendered after the Combobox.Input / Combobox.Button
@vercel
Copy link

vercel bot commented Sep 8, 2022

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

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview Sep 8, 2022 at 9:14PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview Sep 8, 2022 at 9:14PM (UTC)

@RobinMalfait RobinMalfait changed the title Ensure Combbox.Label is properly linked when rendered after other components Ensure Combobox.Label is properly linked when rendered after Combobox.Button and Combobox.Input components Sep 8, 2022
@RobinMalfait RobinMalfait merged commit 46a7ab6 into main Sep 8, 2022
@RobinMalfait RobinMalfait deleted the fix/issue-1836 branch September 8, 2022 21:18
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.

[React] Combobox: aria-labelledby not set if Label is rendered last
1 participant