Skip to content

Commit

Permalink
fix(Portal): use portalNode to check focus (#3015)
Browse files Browse the repository at this point in the history
fix(Portal): use portalNode to check focus
  • Loading branch information
layershifter authored Jul 17, 2018
1 parent 16fea89 commit 63d7175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/Portal/Portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class Portal extends Component {
_.invoke(trigger, 'props.onBlur', e, ...rest)

// do not close if focus is given to the portal
const didFocusPortal = _.invoke(this, 'rootNode.contains', e.relatedTarget)
const didFocusPortal = _.invoke(this, 'portalNode.contains', e.relatedTarget)

if (!closeOnTriggerBlur || didFocusPortal) return

Expand Down

0 comments on commit 63d7175

Please sign in to comment.