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
Keyboard support not working for UncontrolledDropdown with menuRole="listbox" #2467
Labels
Comments
Did you find any solution? |
illiteratewriter
added a commit
to illiteratewriter/reactstrap
that referenced
this issue
Jul 27, 2022
illiteratewriter
added a commit
that referenced
this issue
Aug 26, 2022
Merged
This was referenced Feb 18, 2023
This was referenced Mar 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UncontrolledDropdown
#9.0.1
es
#17.0.2
#5.1.3
What is happening?
Keyboard navigation doesn't work for
UncontrolledDropdown
when usingmenuRole="listbox"
.It looks like the issue is
this.context
is an empty object whenthis.getMenuItems()
is called, making it look for items with a role ofmenuitem
instead ofoption
, becausegetMenuItems
doesn't realize the role is listbox.What should be happening?
The user should be able to select options from the dropdown using the keyboard.
Steps to reproduce issue
Error message in console
Call stack
Code
https://stackblitz.com/edit/reactstrap-z6t3bg?file=Example.js
The text was updated successfully, but these errors were encountered: