Skip to content
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

Merged
merged 1 commit into from
Oct 10, 2014

Conversation

fat
Copy link
Member

@fat fat commented Oct 3, 2014

Fixes #13816.

@fat
Copy link
Member Author

fat commented Oct 3, 2014

@hnrch02 thoughts?

@hnrch02 hnrch02 closed this Oct 3, 2014
@hnrch02 hnrch02 reopened this Oct 3, 2014
@hnrch02
Copy link
Collaborator

hnrch02 commented Oct 3, 2014

Oops 😁 I like it, seems like it breaks a lot of things though.

@hnrch02
Copy link
Collaborator

hnrch02 commented Oct 3, 2014

Including our dear friend backward compatibility.

@fat
Copy link
Member Author

fat commented Oct 3, 2014

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?

@hnrch02
Copy link
Collaborator

hnrch02 commented Oct 3, 2014

I agree, maybe we could emphasize this change in the release notes.

@fat
Copy link
Member Author

fat commented Oct 3, 2014

cool - think i got the tests fixed 😅

@fat
Copy link
Member Author

fat commented Oct 3, 2014

mark - this moves the backdrop element out of the body and into the modal element (it's how twitter does it)

@cvrebert cvrebert added the js label Oct 3, 2014
@cvrebert cvrebert added this to the v3.2.1 milestone Oct 3, 2014
@mdo
Copy link
Member

mdo commented Oct 3, 2014

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.

@FagnerMartinsBrack
Copy link

@fat

this moves the backdrop element out of the body and into the modal element

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.

@mdo

so I don't think it makes too much of a difference for folks.

It makes a difference in the case I mentioned above (in a good manner though).

@fat
Copy link
Member Author

fat commented Oct 10, 2014

rad - gonna merge this then \o/

fat added a commit that referenced this pull request Oct 10, 2014
fixes #13816 Modal dialog closes when dragging and releasing mouse button outside dialog
@fat fat merged commit 42311c8 into master Oct 10, 2014
@fat fat deleted the fat-13816 branch October 10, 2014 03:56
@cvrebert cvrebert mentioned this pull request Oct 10, 2014
alloy-d added a commit to alloy-d/react-bootstrap that referenced this pull request Jan 7, 2015
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.
hnrch02 added a commit that referenced this pull request Feb 24, 2015
hnrch02 added a commit that referenced this pull request Feb 25, 2015
@Jim-Horn
Copy link

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?

.modal-backdrop {
    position: fixed;
    bottom: 0;
}

@hnrch02
Copy link
Collaborator

hnrch02 commented Feb 26, 2015

@Jim-Horn This will be reverted by #15881.

@Jim-Horn
Copy link

Thanks Heinrich

Cheers, Jim

hnrch02 added a commit that referenced this pull request Mar 1, 2015
@twbs twbs locked and limited conversation to collaborators Mar 2, 2015
hnrch02 added a commit that referenced this pull request Mar 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modal dialog closes when dragging and releasing mouse button outside dialog
6 participants