Virtual whiteboard for sketching hand-drawn like diagrams
Set selection when unlocking (#567)
Christopher Chedeau2a87c7381b9d
diff --git a/src/index.tsx b/src/index.tsxindex baaf2ef366..5dca0ff37b 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -496,7 +496,12 @@ export class App extends React.Component<any, AppState> {return (<LockIconchecked={elementLocked}- onChange={() => this.setState({ elementLocked: !elementLocked })}+ onChange={() => {+ this.setState({+ elementLocked: !elementLocked,+ elementType: elementLocked ? "selection" : this.state.elementType,+ });+ }}/>);}