atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.93k stars 520 forks source link

Mount but not show #845

Closed avele closed 2 years ago

avele commented 4 years ago

Hello

Is there a way I can mount tippy on create without showing it?

My case is - I need to access mounted DOM right after tippy creation, but I dont need tippy to be in active/visible state.

atomiks commented 4 years ago

I guess you can use some CSS to keep it hidden while it's showing.

avele commented 4 years ago

I guess you can use some CSS to keep it hidden while it's showing.

Yeah, I know, but I also want to prevent all the code associated with showing to run (like adding event listeners on document to detect outside tippy click).