fix focus bug causing missed options by nvda
This commit is contained in:
parent
3bddf30a92
commit
bdcf34a38f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user