diff --git a/lib/index.js b/lib/index.js index 861d064..3d7ac86 100644 --- a/lib/index.js +++ b/lib/index.js @@ -325,10 +325,12 @@ class Popover extends React.Component { this.setState({ exiting: true }) this.exitingAnimationTimer2 = setTimeout(() => { setTimeout(() => { - this.containerEl.style.transform = `${flowToPopoverTranslations[ - this.zone.flow - ]}(${this.zone.order * 50}px)` - this.containerEl.style.opacity = "0" + if (this.containerEl) { + this.containerEl.style.transform = `${flowToPopoverTranslations[ + this.zone.flow + ]}(${this.zone.order * 50}px)` + this.containerEl.style.opacity = "0" + } }, 0) }, 0)