Dialog not working on Bootstrap 3.0
I have updated to Bootstrap 3.0 and the dialog isn't working. It is only showing the backdrop but not displaying the dialog itself.
We are not supporting Bootstrap 3.0 yet. We could have a look at your issue given that you provide minimal reproduce scenario using http://plnkr.co/
add following to your style
.modal {
display: block;
}
.hide {
display: none;
}
and add hide class to your modal
then you also need add something like this outside your "modal-header/body/footer":
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header"> ... </div>
<div class="modal-body"> ... </div>
<div class="modal-footer"> ... </div>
</div>
</div>
angular use class in to show modal。this is nothing to do with template 在 2013年7月30日 下午2:04,"ludwik" [email protected]写道:
then you also need add something like this outside your "modal-header/body/footer":
— Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/bootstrap/issues/722#issuecomment-21771317 .
I understand, but here without changing template you cannot make this modal works right with bootstrap 3. I tried.
@kevin-wolf we are not supporting Bootstrap 3 yet, this is in progress (see #331). We've got a pull request already with many changes (including modal: #742) but we need to re-organize folders structure to have both templates for 2.x and 3.x.
Bootstrap 3.x compatibility will be handled in #331
.modal { display: block; } .modal-body:before, .modal-body:after { display: table; content: " "; } .modal-header:before, .modal-header:after { display: table; content: " "; }
and
Makes it work. I needed the before/after ones to make height adjust to custom directives
@H-a-w-k Your code works flawlessly. Thanks!
I have made a small addition to modal class to make backdrop clickable:
.modal { display: block; height: 0; overflow: visible; }
PS. Hope that version 0.7.0 with full Bootstrap3 support gets released soon!
Then we can start working on v3.0.1 ;)
@cloudride ...You are a life saver! Thanks a lot.
well, this is embarrassing... the website allows you to download Bootstrap 3.x... while if you go to v2.3.x it says "officially not supported" :P im confused...