From 29f1465b810efe2ca8b2fab4d4ebfcaa9f3f33fa Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 1 Feb 2020 02:57:44 +0000 Subject: [PATCH] Fix wrong cursor for selection keyboard shortcut (#645) Pressing 1 would change the cursor to a + instead of normal cursor --- src/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index d2b6071e..37b67dc3 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -378,8 +378,7 @@ export class App extends React.Component { 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 });