Skip to content

Commit

Permalink
remove portal div on unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
John Benavides committed Dec 23, 2017
1 parent 64d1b11 commit d6dcc93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default class Modal extends PureComponent {
if (this.props.closeOnEsc) {
d.removeEventListener('keydown', this.handleKeydown);
}
this.portalElement.remove();
}

getDocument = () => {
Expand Down

0 comments on commit d6dcc93

Please sign in to comment.