bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Dialog not working on Bootstrap 3.0

Open kvnwolf opened this issue 13 years ago • 12 comments

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.

kvnwolf avatar Jul 27 '13 19:07 kvnwolf

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/

pkozlowski-opensource avatar Jul 27 '13 19:07 pkozlowski-opensource

add following to your style

.modal {
    display: block;
}

.hide {
    display: none;
}

29x10 avatar Jul 28 '13 10:07 29x10

and add hide class to your modal

29x10 avatar Jul 28 '13 10:07 29x10

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>

ludwiksh avatar Jul 30 '13 06:07 ludwiksh

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 .

29x10 avatar Jul 30 '13 06:07 29x10

I understand, but here without changing template you cannot make this modal works right with bootstrap 3. I tried.

ludwiksh avatar Jul 30 '13 06:07 ludwiksh

@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

pkozlowski-opensource avatar Aug 01 '13 17:08 pkozlowski-opensource

.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 avatar Sep 11 '13 10:09 H-a-w-k

@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!

lkulbacki avatar Oct 31 '13 11:10 lkulbacki

Then we can start working on v3.0.1 ;)

caitp avatar Oct 31 '13 22:10 caitp

@cloudride ...You are a life saver! Thanks a lot.

iHrushikesh avatar Dec 04 '13 09:12 iHrushikesh

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...

amjo avatar May 23 '14 10:05 amjo