Fix text selection
This commit is contained in:
parent
3769c4af00
commit
aeb11989e3
12
src/index.js
12
src/index.js
@ -148,11 +148,13 @@ function App() {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<ElementOption type="rectangle">Rectangle</ElementOption>
|
{/* If using a component, dragging on the canvas also selects the label text which is annoying.
|
||||||
<ElementOption type="ellipse">Ellipse</ElementOption>
|
Not sure why that's happening */}
|
||||||
<ElementOption type="arrow">Arrow</ElementOption>
|
{ElementOption({ type: "rectangle", children: "Rectangle" })}
|
||||||
<ElementOption type="text">Text</ElementOption>
|
{ElementOption({ type: "ellipse", children: "Ellipse" })}
|
||||||
<ElementOption type="selection">Selection</ElementOption>
|
{ElementOption({ type: "arrow", children: "Arrow" })}
|
||||||
|
{ElementOption({ type: "text", children: "Text" })}
|
||||||
|
{ElementOption({ type: "selection", children: "Selection" })}
|
||||||
<canvas
|
<canvas
|
||||||
id="canvas"
|
id="canvas"
|
||||||
width={window.innerWidth}
|
width={window.innerWidth}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user