Skip to content

Commit

Permalink
Merge 641df86 into 4ac3ff4
Browse files Browse the repository at this point in the history
  • Loading branch information
husseyexplores committed Oct 11, 2019
2 parents 4ac3ff4 + 641df86 commit ed0e24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Modal extends Component {
removePortal = () => {
!isReact16 && ReactDOM.unmountComponentAtNode(this.node);
const parent = getParentElement(this.props.parentSelector);
parent.removeChild(this.node);
parent && parent.removeChild(this.node);
};

portalRef = ref => {
Expand Down

0 comments on commit ed0e24e

Please sign in to comment.