Skip to content

Commit

Permalink
update overflow style declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jossmac committed Sep 9, 2017
1 parent ab69c50 commit 2b6f0f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = React.createClass({
document.body.style.overflow = 'hidden';
} else if (this.props.isOpen && !nextProps.isOpen) {
// setTimeout(() => this.removeAccessibilityHandlers());
document.body.style.overflow = null;
document.body.style.overflow = '';
}
},
/*
Expand Down
8 changes: 4 additions & 4 deletions src/components/ModalHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ module.exports = React.createClass({
className: React.PropTypes.string,
onClose: React.PropTypes.func,
showCloseButton: React.PropTypes.bool,
text: React.PropTypes.string
text: React.PropTypes.string,
},
handleClose () {
document.body.style.overflow = null;
document.body.style.overflow = '';
this.props.onClose();
},
render() {
render () {

// elements
var className = classnames('Modal__header', this.props.className);
Expand All @@ -30,5 +30,5 @@ module.exports = React.createClass({
{this.props.children}
</div>
);
}
},
});

0 comments on commit 2b6f0f6

Please sign in to comment.