We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Envs
@testing-library/user-event version: ^12.1.7
@testing-library/user-event
Testing Framework and version: Jest@24.9.0
DOM Environment: jsdom 16
Relevant code or config
https://codesandbox.io/s/silent-brook-ksldl?file=/src/App.js
What you did:
Tried to use selectOptions in with a custom select using Downshift useSelect hook
selectOptions
Downshift
useSelect
What happened:
It did not work as expected selecting the right options
Reproduction repository:
Problem description:
When trying to use the selectOptions API using a non-native select, the current selector does not match accessible compatible roles
Suggested solution:
Change this line to
Array.from(select.querySelectorAll("option, [role='option']"));
The text was updated successfully, but these errors were encountered:
The #470 PR was incomplete when selecting a non-native accessible listbox we can't handle like a normal option
listbox
There small differences:
innerHTML
value
aria-selected
selected
I'm going to open a new pr with those fixes, can you please re-open this issue @kentcdodds?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Envs
@testing-library/user-event
version: ^12.1.7Testing Framework and version: Jest@24.9.0
DOM Environment: jsdom 16
Relevant code or config
https://codesandbox.io/s/silent-brook-ksldl?file=/src/App.js
What you did:
Tried to use
selectOptions
in with a custom select usingDownshift
useSelect
hookWhat happened:
It did not work as expected selecting the right options
Reproduction repository:
https://codesandbox.io/s/silent-brook-ksldl?file=/src/App.js
Problem description:
When trying to use the
selectOptions
API using a non-native select, the current selector does not match accessible compatible rolesSuggested solution:
Change this line to
The text was updated successfully, but these errors were encountered: