Skip to content

Commit

Permalink
fix(FloatingMenu): primaryFocusNode NPE check
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Feb 28, 2020
1 parent 0ec84f6 commit 9f5938c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/internal/FloatingMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class FloatingMenu extends React.Component {
*/
_focusMenuContent = menuBody => {
const primaryFocusNode = menuBody.querySelector(
this.props.selectorPrimaryFocus
this.props.selectorPrimaryFocus || null
);
const tabbableNode = menuBody.querySelector(selectorTabbable);
const focusableNode = menuBody.querySelector(selectorFocusable);
Expand Down

0 comments on commit 9f5938c

Please sign in to comment.