Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add appendTo support to mount tippy to any element on the page #111

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

danishmughal
Copy link

Currently the library doesn't allow the appendTo prop to be passed down to Tippy.js and so the tooltips must always be appended to document.body.

This PR adds support for the appendTo prop so you can insert the tooltip anywhere on the DOM.

Example:

<Tooltip
...
appendTo={() => document.querySelector('#my_element')}
...
/>

@danishmughal danishmughal changed the title Feature / appendTo Support for any element on the page Add appendTo support to mount tippy to any element on the page Apr 21, 2019
@macme
Copy link

macme commented Nov 7, 2019

Please, someone merge this into master!

@matoscano
Copy link

Can we add this feature?

@PeterKottas
Copy link

More than 1 year since this was fixed and it's still not merged in? That's quite disappointing.

@furappuccinos
Copy link

furappuccinos commented Oct 18, 2020

Why is this not merged in? Anyone have an alternative way to do appendTo={() => document.querySelector('#my_element')} right now? I can't figure it out

@MariuszPL55
Copy link

Because the author of this solution is thinking that there is no issue with this at all 🗡️

@makis-spy
Copy link

Bump, keeping this fresh as this is an important feature.

@icyi2i
Copy link

icyi2i commented Feb 3, 2022

This needs to be merged as it holds one of the most important feature of tippy! @tvkhoa Please review the same.

@breardon2011
Copy link

yeah this would be helpful I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants