.modal-open is not applied to body when "switching" to another modal
Created by: dvdchr
"switching" means I have an element inside a modal with attributes like this:
data-dismiss="modal" data-toggle="modal" data-target="#anotherModal"
Upon closer look, it seems that show.bs.modal
is fired before hidden.bs.modal
, which basically adds another .modal-open
class to body
(therefore does nothing), and then removes the class; ultimately leaving the body
with no .modal-open
class.
Here is an example: http://jsbin.com/iDovaBup/1/
(I'm not sure if this "switching" is allowed, though.)