From aeb11989e378c02d6824f50076b091784a14daf9 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 1 Jan 2020 18:12:49 -0800 Subject: [PATCH] Fix text selection --- src/index.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index 6250f8a3..d8598f98 100644 --- a/src/index.js +++ b/src/index.js @@ -148,11 +148,13 @@ function App() { } return (
- Rectangle - Ellipse - Arrow - Text - Selection + {/* If using a component, dragging on the canvas also selects the label text which is annoying. + Not sure why that's happening */} + {ElementOption({ type: "rectangle", children: "Rectangle" })} + {ElementOption({ type: "ellipse", children: "Ellipse" })} + {ElementOption({ type: "arrow", children: "Arrow" })} + {ElementOption({ type: "text", children: "Text" })} + {ElementOption({ type: "selection", children: "Selection" })}