Skip to content

Commit

Permalink
fix(#2467): keyboard support for dropdown listbox (#2584)
Browse files Browse the repository at this point in the history
  • Loading branch information
illiteratewriter committed Aug 26, 2022
1 parent 3451a46 commit f04d3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dropdown.js
Expand Up @@ -255,7 +255,7 @@ class Dropdown extends React.Component {
}

getItemType() {
if (this.context.menuRole === 'listbox') {
if (this.props.menuRole === 'listbox') {
return 'option';
}
return 'menuitem';
Expand Down

0 comments on commit f04d3a7

Please sign in to comment.