1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-15 10:05:40 +02:00

fix(tooltip): get tip on placement change

This commit is contained in:
Johann-S
2018-04-30 10:49:43 +02:00
parent 4112df4125
commit e57a2f244b
2 changed files with 27 additions and 2 deletions

View File

@@ -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() {