402 - Widget should be marked as not selected when the inspector is closed (#454)

Co-authored-by: xrimpy <=>
This commit is contained in:
Manmeet 2021-08-04 20:47:51 +05:30 committed by GitHub
parent 40d8df936d
commit f87564b0e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,6 +221,10 @@ class Editor extends React.Component {
};
switchSidebarTab = (tabIndex) => {
if (tabIndex == 2)
{
this.setState({ selectedComponent: null });
}
this.setState({
currentSidebarTab: tabIndex
});