diff --git a/src/modal/modal.js b/src/modal/modal.js index 84fc6bec86..a1359b81c4 100644 --- a/src/modal/modal.js +++ b/src/modal/modal.js @@ -187,6 +187,9 @@ angular.module('ui.bootstrap.modal', []) } }; + // moved from template to fix issue #2280 + element.on('click', scope.close); + // This property is only added to the scope for the purpose of detecting when this directive is rendered. // We can detect that by using this property in the template associated with this directive and then use // {@link Attribute#$observe} on it. For more details please see {@link TableColumnResize}. diff --git a/template/modal/window.html b/template/modal/window.html index 0bb4f964b6..2efdd0fe24 100644 --- a/template/modal/window.html +++ b/template/modal/window.html @@ -1,6 +1,6 @@