mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Graph: Fixed graph tooltip getting stuck / not being cleared when leaving dashboard, fixes #23881 (#24162)
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user