use a way of unmounting the tooltip that seems to work 100% of the time

¯\_(ツ)_/¯
This commit is contained in:
Bruno Windels 2019-10-02 14:32:08 +02:00
parent 55c1c5e582
commit 44e68f16ba

View file

@ -271,8 +271,8 @@ export default class InteractiveTooltip extends React.Component {
renderTooltip() {
const { contentRect, visible } = this.state;
ReactDOM.unmountComponentAtNode(getOrCreateContainer());
if (this.props.forceHidden === true || !visible) {
ReactDOM.render(null, getOrCreateContainer());
return null;
}