fix: Fix select behaviour

This commit is contained in:
Maksim Eltyshev
2022-07-26 12:49:40 +02:00
parent a148a3aae5
commit 9c192f4b5c
15 changed files with 18 additions and 18 deletions
@@ -76,7 +76,7 @@ const CommentEdit = React.forwardRef(({ children, defaultData, onUpdate }, ref)
useEffect(() => {
if (isOpened) {
textField.current.ref.current.select();
textField.current.ref.current.focus();
}
}, [isOpened]);