I'm working in Vue with BootstrapVue and the bottom 2 tooltips I'm using are both appearing on the button which the click to mask this value button is targeted to. The tooltip which will contain the SSN is also appearing only on top of the button when it should be only where the span is.
I'm not sure why this is happening given that the IDs are seperated and I'd assume that it'd just place the SSN tooltip onto the span so it'd render there.
Markup:
<span class="app-titlebar__client-data-item non-draggable">
<div v-if="!hideSsn"
class="ssn-text"
@mouseenter="checkDataItem($event, 'ssn')"
@mouseleave="hideTooltips">
<button class="adv-btn adv-btn--naked app-titlebar__unmasked-btn"
id="titlebar-ssn-eye-hide"
@click="maskSsn(true)"
@mouseenter="hoverSsnMask(true)"
@mouseleave="hoverSsnMask(false)">
<svg class="us-icon-svg us-icon-svg--inline us-icon-svg--xs disable-pointer"
role="img"
focusable="false">
<use xlink:href="#adv-icons-svg_unmasked"></use>
</svg>
</button>
<span id="titlebar-ssn">
{{ssn}}
</span>
</div>
<div v-else
class="ssn-text">
<button class="adv-btn adv-btn--naked app-titlebar__mask-btn"
id="titlebar-ssn-eye-show"
@mouseenter="hoverSsnMask(true)"
@mouseleave="hoverSsnMask(false)"
@click="maskSsn(false)">
<svg class="us-icon-svg us-icon-svg--inline us-icon-svg--xs disable-pointer"
role="img"
focusable="false">
<use xlink:href="#adv-icons-svg_masked"></use>
</svg>
</button>
{{ssnMasked}}
</div>
</span>
Tooltips:
<b-tooltip v-if="clientInContext && ssn && hideSsn"
target="titlebar-ssn-eye-show"
:disabled.sync="disableSsnTooltip"
:show.sync="showSsnTooltip"
triggers="hover"
placement="bottom">
Click to temporarily display this value
</b-tooltip>
<b-tooltip v-if="clientInContext && ssn && !hideSsn"
target="titlebar-ssn-eye-hide"
:disabled.sync="disableSsnTooltip"
:show.sync="showSsnTooltip"
triggers="hover"
placement="bottom">
Click to mask this value
</b-tooltip>
<b-tooltip v-if="clientInContext && ssn && !hideSsn"
target="titlebar-ssn"
:disabled.sync="disableSsnTooltip"
:show.sync="showSsnTooltip"
triggers="hover"
placement="bottom">
{{ssn}}
</b-tooltip>