mirror of https://github.com/logseq/logseq
fix: infinite loop error
parent
250421e5c7
commit
50fc185df0
|
@ -131,6 +131,7 @@ export class TextShape extends TLTextShape<TextShapeProps> {
|
|||
|
||||
const handleBlur = React.useCallback(
|
||||
(e: React.FocusEvent<HTMLTextAreaElement>) => {
|
||||
if (!isEditing) return
|
||||
e.currentTarget.setSelectionRange(0, 0)
|
||||
onEditingEnd?.()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue