I'm using Bootstrap's tooltip plugin, and am having trouble getting data-placement="auto bottom"
to work. Using data-placement="bottom"
works as intended though. Here is what my element looks like:
<button class="tooltip-icon btn-icon tooltip-trigger" title="Enter Address" data-placement="auto bottom">
<svg class="icon help">
<use xlink:href="#help"/>
</svg>
</button>
The above causes the tooltip's placement to be top
. I also changed the DEFAULT placement value in the JS:
Tooltip.DEFAULTS = {
animation: true,
placement: 'auto bottom',
selector: false,
template: '<div class="bootstrap-tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
trigger: 'hover focus',
title: '',
delay: 0,
html: false,
container: false,
viewport: {
selector: 'body',
padding: 0
}
}
Here is how I am initializing: $('.tooltip-trigger').tooltip();
Why isn't the auto placement working as intended?