<tr>
<td>fallbackPlacement</td>
<td>string | array</td>
- <td>['top', 'right', 'bottom', 'left']</td>
+ <td>'flip'</td>
<td>Allow to specify which position Popper will use on fallback. For more information refer to
Popper.js's <a href="https://popper.js.org/popper-documentation.html#modifiers..flip.behavior">behavior docs</a></td>
</tr>
placement : 'top',
offset : 0,
container : false,
- fallbackPlacement : [AttachmentMap.TOP, AttachmentMap.RIGHT, AttachmentMap.BOTTOM, AttachmentMap.LEFT]
+ fallbackPlacement : 'flip'
}
const HoverState = {
$(this.tip)
.one(Util.TRANSITION_END, complete)
.emulateTransitionEnd(Tooltip._TRANSITION_DURATION)
- }
- else {
+ } else {
complete()
}
}
const tip = this.getTipElement()
const initConfigAnimation = this.config.animation
if (tip.getAttribute('x-placement') !== null) {
- return;
+ return
}
$(tip).removeClass(ClassName.FADE)
this.config.animation = false