From c8106f2c9ee6fa251e2da2998ad1d26e2bee827e Mon Sep 17 00:00:00 2001 From: jsanchez556 Date: Thu, 22 Sep 2016 09:01:35 -0600 Subject: [PATCH] Update ModalPortal.js (#228) Is necessary to change contentHasFocus() to contentHasFocus: function() in order to avoid IE errors --- lib/components/ModalPortal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/ModalPortal.js b/lib/components/ModalPortal.js index 88d9a116..5faec109 100644 --- a/lib/components/ModalPortal.js +++ b/lib/components/ModalPortal.js @@ -169,7 +169,7 @@ var ModalPortal = module.exports = React.createClass({ return !this.props.isOpen && !this.state.beforeClose; }, - contentHasFocus() { + contentHasFocus: function() { return document.activeElement === this.refs.content || this.refs.content.contains(document.activeElement); },