Skip to content
Snippets Groups Projects
Commit bdcf34a3 authored by KDSBrowne's avatar KDSBrowne
Browse files

fix focus bug causing missed options by nvda

parent 3bddf30a
Branches master
No related tags found
No related merge requests found
......@@ -33,7 +33,12 @@ export default class DropdownList extends Component {
}
componentDidUpdate(prevProps, prevState) {
const { activeItemIndex } = this.state;
let { activeItemIndex } = this.state;
if (activeItemIndex === null) {
activeItemIndex = 0;
}
const activeRef = this.childrenRefs[activeItemIndex];
if (activeRef) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment