atomiks / tippyjs

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

Property to prevent removing Tippy instance from DOM (hide instead of remove) #1169

Open oskarkrawczyk opened 1 month ago

oskarkrawczyk commented 1 month ago

Problem

Let's say a tippy contains form fields (inputs, selects), when you open up a tippy and force it to render inside of a form, once hidden the DOM of the tippy along with all fields is removed, hence submitting the form will lack data.

Solution

A property to force tippy not to remove the instance from DOM, and just hide it instead.