tajo/react-portal

Portal closes when dragging from inside portal and releasing outside of portal

jacobsowles opened this issue · 0 comments

When I click inside a portal (in this case, PortalWithState), then drag outside the portal and release, the portal closes (assuming I have closeOnOutsideClick turned on). I'd expect the portal to stay open unless I actually mouse down outside the portal.

In my use case, users are highlighting text inside an input field (which is inside the portal), and the portal is closing prematurely because they release outside of the portal boundaries.

demo