From d3f8909697dffaa4a65888b7f4d06da9df5773b0 Mon Sep 17 00:00:00 2001 From: Tomasz Tomys Date: Thu, 30 Aug 2018 11:49:15 +0200 Subject: [PATCH] Fix transitions (especially on manual triggering) --- src/Tooltip/component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tooltip/component.js b/src/Tooltip/component.js index eb588a8..dfd97ad 100644 --- a/src/Tooltip/component.js +++ b/src/Tooltip/component.js @@ -128,7 +128,7 @@ class Tooltip extends Component { } if (this.tippy) { const popper = this.tippy.getPopperElement(this.tooltipDOM); - this.tippy.show(popper, this.props.duration); + setTimeout(() => { this.tippy.show(popper, this.props.duration); }); } } @@ -138,7 +138,7 @@ class Tooltip extends Component { } if (this.tippy) { const popper = this.tippy.getPopperElement(this.tooltipDOM); - this.tippy.hide(popper, this.props.hideDuration); + setTimeout(() => { this.tippy.hide(popper, this.props.hideDuration); }); } }