react-disposable-modal
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -106,2 +106,10 @@ "use strict"; | ||
} | ||
}, { | ||
key: "componentWillUnmount", | ||
value: function componentWillUnmount() { | ||
if (this.parentContainer) { | ||
document.body.removeChild(this.parentContainer); | ||
this.parentContainer = null; | ||
} | ||
} | ||
}]); | ||
@@ -108,0 +116,0 @@ |
{ | ||
"name": "react-disposable-modal", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "React-disposable-modal is a reactive API for building modal components in React.", | ||
@@ -5,0 +5,0 @@ "main": "lib/disposable-modal.js", |
@@ -50,2 +50,9 @@ import React from "react"; | ||
} | ||
componentWillUnmount() { | ||
if(this.parentContainer) { | ||
document.body.removeChild(this.parentContainer) | ||
this.parentContainer = null | ||
} | ||
} | ||
} | ||
@@ -52,0 +59,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18811
184
0