-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
fixes #13816 Modal dialog closes when dragging and releasing mouse button outside dialog #14724
Conversation
@hnrch02 thoughts? |
Oops 😁 I like it, seems like it breaks a lot of things though. |
Including our dear friend backward compatibility. |
meh – the dom is slightly changed, but i think in a trivial way. not too worried about the backward compatibility of that – @mdo what do you think about the backwards compatibility here? |
I agree, maybe we could emphasize this change in the release notes. |
cool - think i got the tests fixed 😅 |
mark - this moves the backdrop element out of the body and into the modal element (it's how twitter does it) |
I think we can get behind that. The backdrop was always programmatically inserted, so I don't think it makes too much of a difference for folks. |
When a system updates page fragments through AJAX (simulating a page request, like senna) and the modal is open, then the backdrop will stay visible after the content have been replaced. Moving the backdrop inside the modal fixes the issue.
It makes a difference in the case I mentioned above (in a good manner though). |
…tton outside dialog
rad - gonna merge this then \o/ |
fixes #13816 Modal dialog closes when dragging and releasing mouse button outside dialog
In Bootstrap 3.3.0, the `.modal-backdrop` was moved inside its corresponding `.modal`. See: twbs/bootstrap#14724 With this, the `z-index` was removed from the `.modal-backdrop`, meaning that modal backdrops in React Bootstrap aren't layered properly when used with CSS from Bootstrap >= 3.3.0.
Hey guys, it looks like this commit broke the backdrop functionality for modals. I did a diff between 3.2.0 and 3.2.1 and tracked the issue to this commit. I just upgraded our webjars to use 3.3.2-1, and it's still broken. I've added the hack below to fix this locally. Any thoughts?
|
Thanks Heinrich Cheers, Jim |
Fixes #13816.