pl-fe: i hate all those workarounds

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-06-28 17:05:34 +02:00
parent bc4cc8c840
commit 45e1a4cd4e

View File

@ -318,7 +318,7 @@ const Thread: React.FC<IThread> = ({
offset: -146,
});
setTimeout(() => statusRef.current?.querySelector<HTMLDivElement>('.detailed-actualStatus')?.focus(), 0);
setTimeout(() => (node.current?.querySelector('.detailed-actualStatus') as HTMLDivElement)?.focus(), 100);
}, 0);
}, [status.id, ancestorsIds.length]);