From 254bb0c99ef0b5e23a053a11c8a2266ef7701ab5 Mon Sep 17 00:00:00 2001 From: Adela Almasan <88068998+adela-almasan@users.noreply.github.com> Date: Wed, 12 Oct 2022 16:18:56 -0500 Subject: [PATCH] Canvas: Clear current selection in dashboard mode (#56830) --- 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,