Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-expand

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-expand - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

build/index.js

@@ -378,6 +378,6 @@ (function webpackUniversalModuleDefinition(root, factory) {

_this.setBodyClassName = function () {
if (document.body.classList.contains("modal-open") && !_this.context.isExpanded(_this.props.modalId)) {
if (document.body.classList.contains("modal-open") && !_this.container.childElementCount) {
document.body.classList.remove("modal-open");
}
if (!document.body.classList.contains("modal-open") && _this.context.isExpanded(_this.props.modalId)) {
if (!document.body.classList.contains("modal-open") && _this.container.childElementCount) {
document.body.classList.add("modal-open");

@@ -404,2 +404,4 @@ }

document.body.appendChild(this.container);
} else {
this.container = document.getElementById(Modal.containerName);
}

@@ -406,0 +408,0 @@ this.setBodyClassName();

{
"name": "react-expand",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simple element expand state controlling",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -59,3 +59,3 @@ # React Expand

<ModalOpenButton modalId="some-id" {...HTMLButtonElementProps}/>
<Modal modalId="some-id" defaultOpened closeOnOutside wrapperProps={...HTMLDivElementProps}>
<Modal modalId="some-id" defaultOpened closeOnOutside {...HTMLDivElementProps}>
...

@@ -62,0 +62,0 @@ <ModalCloseButton {...HTMLButtonElementProps}/>

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc