use HTMLTextAreaElement here as well

This commit is contained in:
jrkb 2023-05-04 17:18:14 +02:00
parent 732faa9264
commit ded18a63c3

View file

@ -78,7 +78,7 @@ const MarkerEditorPopover: React.FC<{
}
}, [layoutP, sheet])
const inputRef = useRef<HTMLInputElement>(null)
const inputRef = useRef<HTMLTextAreaElement>(null)
useLayoutEffect(() => {
inputRef.current!.focus()
}, [])