Skip to content

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

Open
danishmughal wants to merge 3 commits intotvkhoa:masterfrom
danishmughal:master
Open

Add appendTo support to mount tippy to any element on the page#111
danishmughal wants to merge 3 commits intotvkhoa:masterfrom
danishmughal:master

Conversation

@danishmughal
Copy link
Copy Markdown

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
Copy Markdown

macme commented Nov 7, 2019

Please, someone merge this into master!

@matoscano
Copy link
Copy Markdown

Can we add this feature?

@PeterKottas
Copy link
Copy Markdown

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

@furappuccinos
Copy link
Copy Markdown

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
Copy Markdown

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

@makis-spy
Copy link
Copy Markdown

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

@icyi2i
Copy link
Copy Markdown

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
Copy Markdown

yeah this would be helpful I think

@jgrant404
Copy link
Copy Markdown

Bump...

@icyi2i
Copy link
Copy Markdown

icyi2i commented Jun 20, 2025

Is this issue dead or what?

@danishmughal
Copy link
Copy Markdown
Author

This whole repo is dead. You should not be using react-tippy in 2025 - there are way better options out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants