}
})
- Util.reflow(tip)
-
$(tip).addClass(ClassName.SHOW)
// if this is a touch-enabled device we add extra
}
const complete = () => {
+ if (this.config.animation) {
+ this._fixTransition()
+ }
const prevHoverState = this._hoverState
this._hoverState = null
$(this.tip)
.one(Util.TRANSITION_END, complete)
.emulateTransitionEnd(Tooltip._TRANSITION_DURATION)
- return
}
-
- complete()
+ else {
+ complete()
+ }
}
}
this.addAttachmentClass(this._getAttachment(data.placement))
}
+ _fixTransition() {
+ const tip = this.getTipElement()
+ const initConfigAnimation = this.config.animation
+ if (tip.getAttribute('x-placement') !== null) {
+ return;
+ }
+ $(tip).removeClass(ClassName.FADE)
+ this.config.animation = false
+ this.hide()
+ this.show()
+ this.config.animation = initConfigAnimation
+ }
+
// static
static _jQueryInterface(config) {