From e57a2f244ba8446fffe71847e6a58b18f7b2d541 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Mon, 30 Apr 2018 10:49:43 +0200 Subject: fix(tooltip): get tip on placement change --- js/src/tooltip.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/src') diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 56c1aa0d1..c66e48385 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -660,9 +660,11 @@ const Tooltip = (($) => { } } - _handlePopperPlacementChange(data) { + _handlePopperPlacementChange(popperData) { + const popperInstance = popperData.instance + this.tip = popperInstance.popper this._cleanTipClass() - this.addAttachmentClass(this._getAttachment(data.placement)) + this.addAttachmentClass(this._getAttachment(popperData.placement)) } _fixTransition() { -- cgit v1.2.3