File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,11 @@ angular.module('ui.bootstrap.modal', [])
187
187
}
188
188
} ;
189
189
190
+ // moved from template to fix issue #2280
191
+ element . on ( 'click' , function ( evt ) {
192
+ scope . close ( evt ) ;
193
+ } ) ;
194
+
190
195
// This property is only added to the scope for the purpose of detecting when this directive is rendered.
191
196
// We can detect that by using this property in the template associated with this directive and then use
192
197
// {@link Attribute#$observe } on it. For more details please see {@link TableColumnResize }.
Original file line number Diff line number Diff line change 1
1
< div modal-render ="{{$isRendered}} " tabindex ="-1 " role ="dialog " class ="modal "
2
2
modal-animation-class ="fade "
3
3
modal-in-class ="in "
4
- ng-style ="{'z-index': 1050 + index*10, display: 'block'} " ng-click =" close($event) ">
4
+ ng-style ="{'z-index': 1050 + index*10, display: 'block'} ">
5
5
< div class ="modal-dialog " ng-class ="size ? 'modal-' + size : '' "> < div class ="modal-content " modal-transclude > </ div > </ div >
6
6
</ div >
You can’t perform that action at this time.
0 commit comments