fix focus bug causing missed options by nvda

This commit is contained in:
KDSBrowne 2017-04-17 10:36:41 -07:00
parent 3bddf30a92
commit bdcf34a38f

View File

@ -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) {