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

Components have incorrect id attribute #35

Merged
merged 3 commits into from
Feb 16, 2024
Merged

Conversation

widoz
Copy link
Member

@widoz widoz commented Feb 16, 2024

The id was not unique since the component might render the same
collection of options multiple times within the same page.

We have now a new React hook useId which fallback to the React.useId
in the case the component does not get any id as a prop.

Fix #26

The `id` was not unique since the component might render the same
collection of options multiple times within the same page.

We have now a new React hook `useId` which fallback to the `React.useId`
 in the case the component does not get any `id` as a prop.
@widoz widoz added the bug Something isn't working label Feb 16, 2024
@widoz widoz merged commit b80bb6c into main Feb 16, 2024
2 checks passed
@widoz widoz deleted the bugfix/26/wrong-id-attributes branch February 16, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ids for Toggle and Radio controls are incorrect
1 participant