Skip to content

Commit

Permalink
wrapping popover
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Aug 13, 2018
1 parent 90df881 commit e38a07c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/popover/wrapping_popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ export class EuiWrappingPopover extends Component {
}

componentWillUnmount() {
this.portal.insertAdjacentElement(
'beforebegin',
this.props.button
);
if (this.props.button.parentNode) {
this.portal.insertAdjacentElement(
'beforebegin',
this.props.button
);
}
}

setPortalRef = node => {
Expand Down

0 comments on commit e38a07c

Please sign in to comment.