react-disposable-modal
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -109,3 +109,3 @@ "use strict"; | ||
value: function componentWillUnmount() { | ||
if (this.parentContainer) { | ||
if (this.parentContainer && document.body.contains(this.parentContainer)) { | ||
document.body.removeChild(this.parentContainer); | ||
@@ -112,0 +112,0 @@ this.parentContainer = null; |
{ | ||
"name": "react-disposable-modal", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "React-disposable-modal is a reactive API for building modal components in React.", | ||
@@ -5,0 +5,0 @@ "main": "lib/disposable-modal.js", |
@@ -52,3 +52,3 @@ import React from "react"; | ||
componentWillUnmount() { | ||
if(this.parentContainer) { | ||
if(this.parentContainer && document.body.contains(this.parentContainer)) { | ||
document.body.removeChild(this.parentContainer) | ||
@@ -55,0 +55,0 @@ this.parentContainer = null |
Sorry, the diff of this file is not supported yet
19020