Socket
Socket
Sign inDemoInstall

react-hyper-modal

Package Overview
Dependencies
8
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

9

dist/index.es.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc