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

This commit is contained in:
Torkel Ödegaard 2016-04-24 12:50:33 +02:00
parent c0384a04f8
commit 00827ce921

View File

@ -206,9 +206,12 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
});
$compile(child)(scope);
elem.empty();
elem.append(child);
// let a binding digest cycle complete before adding to dom
setTimeout(function() {
elem.append(child);
});
}
function registerPluginComponent(scope, elem, attrs, componentInfo) {