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: use a not random id for the list #464

Merged
merged 2 commits into from
May 29, 2020
Merged

fix: use a not random id for the list #464

merged 2 commits into from
May 29, 2020

Conversation

ro-ka
Copy link
Contributor

@ro-ka ro-ka commented May 29, 2020

Description

Fixes #452, a bug where the random ID for the suggest list makes snapshot tests and enhancing server side rendered apps unusable.

The random ID was added to make the suggest list readable for screen readers, see commit b6b7f3d.

This uses an ID that can get passed in and otherwise uses a default ID. The ID then is added to the input and the list with a prefix. Closes #450, too.

Checklist

  • All tests passing
  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary
  • Commits and PR follow conventions

@ro-ka ro-ka requested a review from hundekoerper May 29, 2020 08:14
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.

Prop aria-owns did not match. - SSR Add inputId prop
2 participants