Skip to content

Commit 0c48ec1

Browse files
committed
Also hide the modal if it's open
1 parent db74c1f commit 0c48ec1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modal/modal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ angular.module('angularify.semantic.modal', [])
2121
element.modal(modelValue ? 'show' : 'hide');
2222
});
2323
scope.$on('$destroy', function() {
24+
element.modal('hide');
2425
element.remove();
2526
});
2627
}

0 commit comments

Comments
 (0)