Commit 00827ce9 by Torkel Ödegaard

fix(): let binding cycle complete before adding panel to dom

parent c0384a04
...@@ -206,9 +206,12 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $ ...@@ -206,9 +206,12 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
}); });
$compile(child)(scope); $compile(child)(scope);
elem.empty(); elem.empty();
// let a binding digest cycle complete before adding to dom
setTimeout(function() {
elem.append(child); elem.append(child);
});
} }
function registerPluginComponent(scope, elem, attrs, componentInfo) { function registerPluginComponent(scope, elem, attrs, componentInfo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment