Fix compose form focus on home page
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
a2b4913fe7
commit
c6df84b223
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