From da5186b07a17d1363681b7e595a63c54ade8fe29 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 12 Oct 2022 17:37:23 -0400 Subject: [PATCH] Canvas: Clear current selection in dashboard mode (#56830) (#56831) (cherry picked from commit 254bb0c99ef0b5e23a053a11c8a2266ef7701ab5) Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com> --- public/app/plugins/panel/canvas/CanvasPanel.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/plugins/panel/canvas/CanvasPanel.tsx b/public/app/plugins/panel/canvas/CanvasPanel.tsx index 06350f379cd..b57e3549674 100644 --- a/public/app/plugins/panel/canvas/CanvasPanel.tsx +++ b/public/app/plugins/panel/canvas/CanvasPanel.tsx @@ -74,6 +74,7 @@ export class CanvasPanel extends Component { this.props.eventBus.subscribe(PanelEditExitedEvent, (evt: PanelEditExitedEvent) => { if (this.props.id === evt.payload) { this.needsReload = true; + this.scene.clearCurrentSelection(); this.scene.load( this.props.options.root, this.props.options.inlineEditing,