From f87564b0e31eddb017384f2f67e02b26d8c66710 Mon Sep 17 00:00:00 2001 From: Manmeet Date: Wed, 4 Aug 2021 20:47:51 +0530 Subject: [PATCH] 402 - Widget should be marked as not selected when the inspector is closed (#454) Co-authored-by: xrimpy <=> --- frontend/src/Editor/Editor.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index 838f70f468..9073df589c 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -221,6 +221,10 @@ class Editor extends React.Component { }; switchSidebarTab = (tabIndex) => { + if (tabIndex == 2) + { + this.setState({ selectedComponent: null }); + } this.setState({ currentSidebarTab: tabIndex });