From bdcf34a38fbcbb1b75a2b6820982150dff556c13 Mon Sep 17 00:00:00 2001 From: KDSBrowne Date: Mon, 17 Apr 2017 10:36:41 -0700 Subject: [PATCH] fix focus bug causing missed options by nvda --- .../imports/ui/components/dropdown/list/component.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/dropdown/list/component.jsx b/bigbluebutton-html5/imports/ui/components/dropdown/list/component.jsx index 7b30df148c..2e8993c7d4 100755 --- a/bigbluebutton-html5/imports/ui/components/dropdown/list/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/dropdown/list/component.jsx @@ -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) {