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(() => {
|
||||
if (firstRender.current) {
|
||||
if (spoiler && firstRender.current) {
|
||||
focusTextarea();
|
||||
firstRender.current = false;
|
||||
} else if (!spoiler && prevSpoiler) {
|
||||
|
|
Loading…
Reference in a new issue