We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503291e commit 58fa456Copy full SHA for 58fa456
client/directives/modals/directiveModal.js
@@ -5,6 +5,7 @@ require('app')
5
*/
6
function modal(
7
$templateCache,
8
+ $timeout,
9
$compile,
10
keypather,
11
$rootScope,
@@ -64,9 +65,11 @@ function modal(
64
65
if (typeof keypather.get($scope, 'actions.closePopover') === 'function') {
66
$scope.actions.closePopover();
67
}
68
+ // Trigger a digest cycle
69
+ $timeout(angular.noop);
70
71
- element[0].onclick = createModal;
72
+ element.on('click', createModal);
73
$scope.$watch('data.in', function(n) {
74
if (n === true) {
75
createModal();
0 commit comments