prevent markdown input cursor from moving
This commit is contained in:
parent
73bb4a0141
commit
02ec14549f
@ -93,7 +93,7 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, setH
|
|||||||
const input = innerRef.current
|
const input = innerRef.current
|
||||||
input.setSelectionRange(start, end)
|
input.setSelectionRange(start, end)
|
||||||
}
|
}
|
||||||
}, [innerRef?.current, selectionRange.start, selectionRange.end])
|
}, [innerRef, selectionRange.start, selectionRange.end])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FormGroup label={label} className={groupClassName}>
|
<FormGroup label={label} className={groupClassName}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user