Browse Source

fix: endless loop

Konstantinos Kaloutas 2 years ago
parent
commit
6e101a8fbf
1 changed files with 0 additions and 1 deletions
  1. 0 1
      tldraw/apps/tldraw-logseq/src/lib/shapes/TextShape.tsx

+ 0 - 1
tldraw/apps/tldraw-logseq/src/lib/shapes/TextShape.tsx

@@ -132,7 +132,6 @@ export class TextShape extends TLTextShape<TextShapeProps> {
     const handleBlur = React.useCallback(
       (e: React.FocusEvent<HTMLTextAreaElement>) => {
         if (!isEditing) return
-        e.currentTarget.setSelectionRange(0, 0)
         onEditingEnd?.()
       },
       [onEditingEnd]