Angular Bootstrap Modal leaves backdrop open

后端 未结 6 1444
你的背包
你的背包 2020-12-09 16:04

I\'m using AngularUI to integrate Bootstrap components in my Angular 1.4 app, such as Modals.

I\'m calling a Modal in my controller like so:

var mod         


        
6条回答
  •  感动是毒
    2020-12-09 16:28

    Simply you can do like this, first close the modal u have opened

     $('#nameOfModal').modal('hide');  
    

    basically id of modal Second this to remove if any

     $('body').removeClass('modal-open');
    

    lastly to close backdrop

     $('.modal-backdrop').remove();
    

提交回复
热议问题