Click widget to open inspector (#564)

This commit is contained in:
Navaneeth Pk 2021-08-20 22:09:21 +05:30 committed by GitHub
parent 45841259b3
commit f5abbcfe12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -786,8 +786,8 @@ class Editor extends React.Component {
configHandleClicked={this.configHandleClicked}
removeComponent={this.removeComponent}
onComponentClick={(id, component) => {
// this.setState({ selectedComponent: { id, component } });
// this.switchSidebarTab(1);
this.setState({ selectedComponent: { id, component } });
this.switchSidebarTab(1);
onComponentClick(this, id, component);
}}
/>