Setting backdrop prevents modal from showing.
When setting backdrop to static or true, backdrop shows, but modal never appears.
The only thing I could find is that the 'in' class does not get applied to this element
<div class="modal hide fade">
Just noticed this issue is related to issue #497.
what browser? could you provide a jsfiddle? thanks!
I am using Google Chrome, I can certainly provide you with a jsfiddle.
http://jsfiddle.net/cm3gx/2/
<div class="modal-backdrop fade in"></div> gets added when I open up the modal, but the class 'in' is never added to the modal div
If I add the class 'in' using Chrome inspector, I am able to see the modal animate in.
When the modal appears when I add the class 'in' using Chrome inspector, and click 'Close'. The modal disappears, but the <div class="modal-backdrop fade in"></div> does not get removed from the DOM. This prevents me from clicking anything on the DOM.
Also Chrome does not show any errors or warnings in the debug console.
The jsfiddle is working fine for me running Google Chrome 15.0.874.106 and Chrome 17.0.919.0 on Windows 7.
This issue was due to my error. Closing this issue.
@adetwiler -- I'm having the same issue. What was your error?
@stevenklein
The issue was that I had a fade class in my css that was overwriting the bootstraps fade class. Below is the fade class that is required for backdrop to work correctly:
.fade{
-webkit-transition:opacity 0.15s linear;
-moz-transition:opacity 0.15s linear;
-ms-transition:opacity 0.15s linear;
-o-transition:opacity 0.15s linear;
transition:opacity 0.15s linear;
opacity:0;
}.fade.in{
opacity:1;
}
Ahhhhhh just realized what the issue was. I thought your solution was solving something else but I realized the transition end event was never being fired because there was no transition being applied. I cherry picked the modal css from the bootstrap css file (as you probably did) but these lines you pasted aren't located near the rest of the modal css. After adding your stuff, everything works fine...thanks so much for the help!
@stevenklein glad to help :)
@adetwiler - thank you a lot. I had the same problem and your comment was very useful!
@adetwiler Thanks so much. I got the same problem and now it's fixed, thanks to you answer~!