Merge branch 'compose-form-focus' into 'develop'

Fix compose form focus on home page

See merge request soapbox-pub/soapbox!2663
This commit is contained in:
marcin mikołajczak 2023-09-12 09:37:01 +00:00
commit b3cdb12e20

View file

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