Skip to content

Commit 0a650fc

Browse files
authored
Merge pull request #2759 from suppermancool/issue-2540
Country selection - select by keyboard #2540 This PR will actually work when
2 parents 967f3e7 + d7c128e commit 0a650fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/SelectDropdown/SelectDropdown.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class SelectDropdown extends Component {
103103
}
104104
const selectItem = (
105105
<li
106+
tabIndex="-1"
106107
key={ optIdx }
107108
className="dropdown-menu-list-item"
108109
styleName={cn({ disabled: option.disabled })}
@@ -129,7 +130,7 @@ class SelectDropdown extends Component {
129130
<div className="dropdown-menu-header"><span className="tc-link">{ selectedValue }</span></div>
130131
</div>
131132
) : (
132-
<Dropdown theme={ theme } className="SelectDropdown" noPointer>
133+
<Dropdown handleKeyboardNavigation theme={ theme } className="SelectDropdown" noPointer>
133134
<div className="dropdown-menu-header"><span className="tc-link">{ selectedValue }</span></div>
134135
<ul className="dropdown-menu-list">
135136
{ options.map(renderOption) }

0 commit comments

Comments
 (0)