diff options
| author | Johann-S <[email protected]> | 2018-04-30 10:49:43 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2018-06-25 16:54:14 +0200 |
| commit | e57a2f244ba8446fffe71847e6a58b18f7b2d541 (patch) | |
| tree | 2c0abd32f4dea0223c4a337612d3c36a5b6f0d91 /js/src/tooltip.js | |
| parent | 4112df4125961da2da5e08a1f61a8a09654fb8fc (diff) | |
| download | bootstrap-e57a2f244ba8446fffe71847e6a58b18f7b2d541.tar.xz bootstrap-e57a2f244ba8446fffe71847e6a58b18f7b2d541.zip | |
fix(tooltip): get tip on placement change
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 6 |
1 files changed, 4 insertions, 2 deletions
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() { |
