From 536c3e086142a2f7773ff6f560a98be72e9a36b5 Mon Sep 17 00:00:00 2001 From: Joao Portela Date: Mon, 25 May 2015 22:02:56 +0100 Subject: [PATCH] [fixed] Replaced document with ownerDocument in Modal --- src/Modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modal.js b/src/Modal.js index 1281304fb4..a91cbe962f 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -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(); },