atomiks / tippyjs

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

Input inside tippy breaks selection when mouse goes outside #1073

Open davesnx opened 2 years ago

davesnx commented 2 years ago

Bug description

Selection to an input that you drag outside of the tooltip loses selection. It loses selection when the mouse drags out of the parent element.

Kapture 2022-08-19 at 18 47 21

That behaviour doesn't happen when an input is placed in the body: https://output.jsbin.com/riqujoqesi

I tried to investigate why this happens, but haven't found a great reasoning rather than

Reproduction

https://codepen.io/davesnx/pen/NWYopoZ