react-hyper-modal
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -318,9 +318,4 @@ import { createElement, Fragment, Component } from 'react'; | ||
HyperModal.getDerivedStateFromProps = function (props, state) { | ||
if (state.isInnerOpen) { | ||
if (props.disableScroll) { | ||
disableScroll(state.isInnerOpen); | ||
} | ||
return { | ||
isInnerOpen: true, | ||
}; | ||
if (props.disableScroll) { | ||
disableScroll(state.isInnerOpen); | ||
} | ||
@@ -327,0 +322,0 @@ if (props.isOpen !== state.isInnerOpen && !props.unmountOnClose) { |
@@ -320,9 +320,4 @@ 'use strict'; | ||
HyperModal.getDerivedStateFromProps = function (props, state) { | ||
if (state.isInnerOpen) { | ||
if (props.disableScroll) { | ||
disableScroll(state.isInnerOpen); | ||
} | ||
return { | ||
isInnerOpen: true, | ||
}; | ||
if (props.disableScroll) { | ||
disableScroll(state.isInnerOpen); | ||
} | ||
@@ -329,0 +324,0 @@ if (props.isOpen !== state.isInnerOpen && !props.unmountOnClose) { |
{ | ||
"name": "react-hyper-modal", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Fully customizable and accessible modal react component", | ||
@@ -5,0 +5,0 @@ "author": "Aleksey Makhankov", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
73817
830