From ef800475ff33eed186252ab9bf86b4bdf1b86187 Mon Sep 17 00:00:00 2001 From: azop <azop@azopcorp.com> Date: Thu, 11 Jan 2024 13:11:55 +0100 Subject: [PATCH] text input & selections ok --- src/AnnotationDrawing.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/AnnotationDrawing.js b/src/AnnotationDrawing.js index 63a473d..7f68831 100644 --- a/src/AnnotationDrawing.js +++ b/src/AnnotationDrawing.js @@ -123,12 +123,9 @@ class Rectangle extends React.Component { stroke={this.props.stroke || 'black'} strokeWidth={this.props.strokeWidth || 1} id={this.props._id} - draggable={activeTool === 'cursor' || activeTool === 'edit'} onClick={this.handleClick} - - /> @@ -338,7 +335,7 @@ class AnnotationDrawing extends Component { selectedShape.text = selectedShape.text.slice(0, -1); } else { - // retrun if not a letter + // return if not a letter if (e.key.length !== 1) { return; } -- GitLab