Skip to content

Commit

Permalink
Release v1.8.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Jun 12, 2017
1 parent e5bb415 commit bf5e288
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-modal",
"version": "1.7.13",
"version": "1.8.1",
"homepage": "https://github.com/reactjs/react-modal",
"authors": [
"Ryan Florence",
Expand Down
9 changes: 6 additions & 3 deletions dist/react-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ return /******/ (function(modules) { // webpackBootstrap
overlay: PropTypes.object
}),
portalClassName: PropTypes.string,
bodyOpenClassName: React.PropTypes.string,
appElement: PropTypes.instanceOf(SafeHTMLElement),
onAfterOpen: PropTypes.func,
onRequestClose: PropTypes.func,
Expand All @@ -117,6 +118,7 @@ return /******/ (function(modules) { // webpackBootstrap
return {
isOpen: false,
portalClassName: 'ReactModalPortal',
bodyOpenClassName: 'ReactModal__Body--open',
ariaHideApp: true,
closeTimeoutMS: 0,
shouldCloseOnOverlayClick: true,
Expand Down Expand Up @@ -180,16 +182,17 @@ return /******/ (function(modules) { // webpackBootstrap
ReactDOM.unmountComponentAtNode(this.node);
var parent = getParentElement(this.props.parentSelector);
parent.removeChild(this.node);

if (refCount.count() === 0) {
elementClass(document.body).remove('ReactModal__Body--open');
elementClass(document.body).remove(this.props.bodyOpenClassName);
}
},

renderPortal: function renderPortal(props) {
if (props.isOpen || refCount.count() > 0) {
elementClass(document.body).add('ReactModal__Body--open');
elementClass(document.body).add(this.props.bodyOpenClassName);
} else {
elementClass(document.body).remove('ReactModal__Body--open');
elementClass(document.body).remove(this.props.bodyOpenClassName);
}

if (props.ariaHideApp) {
Expand Down
Loading

0 comments on commit bf5e288

Please sign in to comment.