Closed
Description
Summary:
Dragging inside modal and release outside of modal closes the modal
Steps to reproduce:
- Drag something inside of a modal
- Release the mouse outside the modal
- Modal closes due to detecting a "click" outside the modal
Expected behavior:
Modal should not respond to mouse up that didn't start inside of the overlay
Link to example of issue:
https://codesandbox.io/s/mgwy6V6E
Additional notes:
I noticed this while using a draggable interface component inside of the modal. It's natural to sometimes overshoot the modal and drag onto the overlay. This results in an unexpected close of the modal.