Skip to content

Commit

Permalink
[fixed] Replaced document with ownerDocument in Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
jportela committed May 25, 2015
1 parent 3b33652 commit 536c3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const Modal = React.createClass({
},

focusModalContent () {
this.lastFocus = document.activeElement;
this.lastFocus = domUtils.ownerDocument(this).activeElement;
let modalContent = React.findDOMNode(this.refs.modal);
modalContent.focus();
},
Expand Down

0 comments on commit 536c3e0

Please sign in to comment.