prevent markdown input cursor from moving

This commit is contained in:
keyan 2023-06-13 09:19:50 -05:00
parent 73bb4a0141
commit 02ec14549f
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, setH
const input = innerRef.current
input.setSelectionRange(start, end)
}
}, [innerRef?.current, selectionRange.start, selectionRange.end])
}, [innerRef, selectionRange.start, selectionRange.end])
return (
<FormGroup label={label} className={groupClassName}>