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() {
|
||||
this.events.emit(PanelEvents.panelTeardown);
|
||||
this.events.removeAllListeners();
|
||||
|
||||
if (this.queryRunner) {
|
||||
|
@ -82,9 +82,6 @@ module.directive('grafanaPanel', ($rootScope, $document, $timeout) => {
|
||||
scope.$on('$destroy', () => {
|
||||
elem.off();
|
||||
|
||||
panel.events.emit(PanelEvents.panelTeardown);
|
||||
panel.events.removeAllListeners();
|
||||
|
||||
if (panelScrollbar) {
|
||||
panelScrollbar.dispose();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user