Closed dnldev closed 2 years ago
try to set appendTo
to parent
or () => this.$el
try to set
appendTo
toparent
or() => this.$el
what do you mean exactly? how would I adapt my code?
can u share ur tippy code?
<custom-btn :class="targetClass"
:style="targetStyle"
:id="targetId"
:content="tooltipText"
v-tippy="{duration: 200, placement: 'bottom', animation: 'fade'}"
v-bind="$attrs"
v-on="$listeners">
<slot name="default"></slot>
</custom-btn>
<custom-btn :class="targetClass"
:style="targetStyle"
:id="targetId"
:content="tooltipText"
- v-tippy="{duration: 200, placement: 'bottom', animation: 'fade'}"
+ v-tippy="{duration: 200, placement: 'bottom', animation: 'fade', appendTo: 'parent'}"
v-bind="$attrs"
v-on="$listeners">
<slot name="default"></slot>
</custom-btn>
Thank you for your response, the tooltips now show in the new window. A new bug has come up though: in the new window, the tooltips don't get hidden when stopping to hover. The same component in the original window hides the tooltips as expected.
This is what the non-removed tooltips look like:
this was a different issue. my problem is solved, thank you!
The tooltips are still in the initial dom and are shown in the top right corner. How can they be copied to the new page. I think this happens because the tooltip content is rendered outside of the component I copy into my new window (as I can see them in the initial dom)