-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dragging inside modal and release outside of modal closes the modal #466
Comments
Hi @jameskraus Yeah, that's pretty annoying. I stumbled upon the same issue recently after replacing a regular |
This is probably related #383 |
It seems, it worked well before. Example from official documentation uses version 1.6.2. I think the cause might be in #217. The bug first appeared in v1.7.0. Rollback to v1.6.5 fixes the issue, but you will have minor warning in console, since it uses deprecated React.createClass |
@diasbruno I am on Mac. But I don't think this is related to browser version. All people in my office experience that issue. |
@tsmirnov ok. |
…loses the modal
@diasbruno I created pull request with the fix. When it can be added to release package? |
@tsmirnov Awesome. It looks good. We have some PRs to merge too, so later I'll release a new version. |
@denisftw @jameskraus A fix is available on |
@diasbruno Awesome! I've just updated the package and can testify that it works perfectly 👍 Thanks @tsmirnov and @diasbruno ! |
Summary:
Dragging inside modal and release outside of modal closes the modal
Steps to reproduce:
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.
The text was updated successfully, but these errors were encountered: