Skip to content

Commit

Permalink
Merge pull request #22 from ojame/master
Browse files Browse the repository at this point in the history
fix: check if container before remove child
  • Loading branch information
paranoidjk committed Aug 2, 2017
2 parents beb03fe + 2cc5c62 commit 3fbf278
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Notification.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ Notification.newInstance = function newNotificationInstance(properties) {
component: notification,
destroy() {
ReactDOM.unmountComponentAtNode(div);
document.body.removeChild(div);
if (!getContainer) {
document.body.removeChild(div);
}
},
};
};
Expand Down

0 comments on commit 3fbf278

Please sign in to comment.