Skip to content

Commit 25899b7

Browse files
mtandatorkelo
authored andcommitted
use applyAsync for compile (grafana#5287)
1 parent f877afb commit 25899b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/app/core/directives/plugin_component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
211211
// let a binding digest cycle complete before adding to dom
212212
setTimeout(function() {
213213
elem.append(child);
214-
scope.$apply(function() {
214+
scope.$applyAsync(function() {
215215
scope.$broadcast('refresh');
216216
});
217217
});

0 commit comments

Comments
 (0)