twitter/bootstrap — Issue #1125: When modal is being displayed, the div is being moved to the body elelment.
Author: vincpa
Created: 2012-01-24 10:54:43+00:00
State: open

Hi,

I've seen multiple people post about this issue and they keep getting closed.

If a modal div is defined in a form element, when the model is displayed, the modal is moved outside of the form element to the as a child of the body element. I'm using Firefox although I've seen this issue in other browsers too.

It might have something to do with this code.

that.$element
.appendTo(document.body)
.show()

Is there a reason the modal is being moved? It's causing problems for posting forms.