ensure we reset draggingElement when tool locked (#627)

This commit is contained in:
David Luzar 2020-01-30 22:14:40 +01:00 committed by GitHub
parent 35750d8d09
commit 6886dfdea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1336,6 +1336,10 @@ export class App extends React.Component<any, AppState> {
draggingElement: null,
elementType: "selection",
});
} else {
this.setState({
draggingElement: null,
});
}
history.resumeRecording();