mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graph: Fixed graph tooltip getting stuck / not being cleared when leaving dashboard, fixes #23881 (#24162)
This commit is contained in:
parent
98ea52ce6f
commit
f273e56adc
@ -467,6 +467,7 @@ export class PanelModel implements DataConfigSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
|
this.events.emit(PanelEvents.panelTeardown);
|
||||||
this.events.removeAllListeners();
|
this.events.removeAllListeners();
|
||||||
|
|
||||||
if (this.queryRunner) {
|
if (this.queryRunner) {
|
||||||
|
@ -82,9 +82,6 @@ module.directive('grafanaPanel', ($rootScope, $document, $timeout) => {
|
|||||||
scope.$on('$destroy', () => {
|
scope.$on('$destroy', () => {
|
||||||
elem.off();
|
elem.off();
|
||||||
|
|
||||||
panel.events.emit(PanelEvents.panelTeardown);
|
|
||||||
panel.events.removeAllListeners();
|
|
||||||
|
|
||||||
if (panelScrollbar) {
|
if (panelScrollbar) {
|
||||||
panelScrollbar.dispose();
|
panelScrollbar.dispose();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user