mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
fix(): let binding cycle complete before adding panel to dom
This commit is contained in:
@@ -206,9 +206,12 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
|
|||||||
});
|
});
|
||||||
|
|
||||||
$compile(child)(scope);
|
$compile(child)(scope);
|
||||||
|
|
||||||
elem.empty();
|
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) {
|
function registerPluginComponent(scope, elem, attrs, componentInfo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user