Skip to content

Commit

Permalink
Update ModalPortal.js (reactjs#228)
Browse files Browse the repository at this point in the history
Is necessary to change contentHasFocus() to contentHasFocus: function() in order to avoid IE errors
  • Loading branch information
jsanchez556 authored and claydiffrient committed Sep 22, 2016
1 parent 2e806c7 commit c8106f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/ModalPortal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},

Expand Down

0 comments on commit c8106f2

Please sign in to comment.