mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
graph legend: fix rendering after legend changes
This commit is contained in:
parent
4b9462993e
commit
302158fb2b
@ -104,8 +104,7 @@ class GraphElement {
|
||||
};
|
||||
const legendReactElem = React.createElement(Legend, legendProps);
|
||||
const legendElem = this.elem.parent().find('.graph-legend');
|
||||
ReactDOM.render(legendReactElem, legendElem[0]);
|
||||
this.onLegendRenderingComplete();
|
||||
ReactDOM.render(legendReactElem, legendElem[0], () => this.onLegendRenderingComplete());
|
||||
}
|
||||
|
||||
onLegendRenderingComplete() {
|
||||
|
Loading…
Reference in New Issue
Block a user