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:
commit
b3cdb12e20
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue