Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 3e8ecff

Browse files
navarroaxelwesleycho
authored andcommitted
fix(modal): close and dismiss bindings on component
- Correctly bind close and dismiss handlers on component usage Closes #6192 Fixes #6191
1 parent ddcacb7 commit 3e8ecff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modal/modal.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,8 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.stackedMap', 'ui.bootstrap.p
512512
content.attr({
513513
resolve: '$resolve',
514514
'modal-instance': '$uibModalInstance',
515-
close: 'close($value)',
516-
dismiss: 'dismiss($value)'
515+
close: '$close($value)',
516+
dismiss: '$dismiss($value)'
517517
});
518518
content = $compile(content)(modal.scope);
519519
} else {

0 commit comments

Comments
 (0)