Skip to content

Commit

Permalink
Merge pull request react-bootstrap#730 from jportela/modal-focus-bug
Browse files Browse the repository at this point in the history
[fixed] Replaced document with ownerDocument in Modal
  • Loading branch information
aabenoja committed May 25, 2015
2 parents 64a8038 + 536c3e0 commit 4e3a15f
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 4e3a15f

Please sign in to comment.