Canvas: Clear current selection in dashboard mode (#56830) (#56831)

(cherry picked from commit 254bb0c99e)

Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-10-12 17:37:23 -04:00
committed by GitHub
co-authored by Adela Almasan
parent e238b9f9c1
commit da5186b07a
@@ -74,6 +74,7 @@ export class CanvasPanel extends Component<Props, State> {
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,