Skip to content

Commit c8106f2

Browse files
jsanchez556claydiffrient
authored andcommitted
Update ModalPortal.js (#228)
Is necessary to change contentHasFocus() to contentHasFocus: function() in order to avoid IE errors
1 parent 2e806c7 commit c8106f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/components/ModalPortal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ var ModalPortal = module.exports = React.createClass({
169169
return !this.props.isOpen && !this.state.beforeClose;
170170
},
171171

172-
contentHasFocus() {
172+
contentHasFocus: function() {
173173
return document.activeElement === this.refs.content || this.refs.content.contains(document.activeElement);
174174
},
175175

0 commit comments

Comments
 (0)