Fix compose form focus on home page

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
environments/review-compose-fo-b0i99c/deployments/3768
marcin mikołajczak 2023-09-12 11:17:30 +02:00
rodzic a2b4913fe7
commit c6df84b223
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -215,7 +215,7 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
}, []);
useEffect(() => {
if (firstRender.current) {
if (spoiler && firstRender.current) {
focusTextarea();
firstRender.current = false;
} else if (!spoiler && prevSpoiler) {