auto focus

This commit is contained in:
feruz 2021-02-04 12:58:48 +02:00
parent 04c75c1b70
commit 9d218f26db

View File

@ -128,6 +128,9 @@ const MarkdownEditorView = ({
const changeUser = async () => {
dispatch(toggleAccountsBottomSheet(!isVisibleAccountsBottomSheet));
if (inputRef && inputRef.current) {
inputRef.current.focus();
}
};
// eslint-disable-next-line react-hooks/exhaustive-deps