angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.3k stars 6.74k forks source link

Modal not working when using `windowTemplateUrl` #6612

Open tarekahf opened 6 years ago

tarekahf commented 6 years ago

Bug description:

Following the provided sample code for using modal dialog box, I am unable to implement the use of windowTemplateUrl.

The popup modal will open, but the dark background seems to be at the front, and none of the clickable buttons are working.

Note that I tried to add a close button on the top-right in the header section, and that was the main reason why I used the windowTemplateUrl parameter.

Link to minimally-working plunker that reproduces the issue:

See plunker sample below:

http://plnkr.co/edit/JMV4Hu2x9l9DA9gaGYaF?p=preview

Steps to reproduce the issue:

Open the plunker sample, click on "Open me!" and you will see the dialog is opened, but all the clickable are not working, and the dark background is at the front.

Also, the close button added to the template is not clickable, nor the other buttons below. Only esc key is working.

Version of Angular, UIBS, and Bootstrap

Angular: 1.5.3

UIBS: 1.3.3

Bootstrap: 3.3.6