Fix wrong cursor for selection keyboard shortcut (#645)

Pressing 1 would change the cursor to a + instead of normal cursor
pull/649/head
Christopher Chedeau 5 years ago committed by GitHub
parent c7eebd42c1
commit 29f1465b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -378,8 +378,7 @@ export class App extends React.Component<any, AppState> {
this.state.draggingElement === null
) {
if (!isHoldingSpace) {
document.documentElement.style.cursor =
shape === "text" ? CURSOR_TYPE.TEXT : CURSOR_TYPE.CROSSHAIR;
setCursorForShape(shape);
}
elements = clearSelection(elements);
this.setState({ elementType: shape });

Loading…
Cancel
Save