Merge branch 'set-immediate' into 'develop'
Thread: replace call to setImmediate See merge request soapbox-pub/soapbox!2670
This commit is contained in:
commit
ecf34537d8
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ const Thread = (props: IThread) => {
|
|||
offset: -146,
|
||||
});
|
||||
|
||||
setImmediate(() => statusRef.current?.querySelector<HTMLDivElement>('.detailed-actualStatus')?.focus());
|
||||
setTimeout(() => statusRef.current?.querySelector<HTMLDivElement>('.detailed-actualStatus')?.focus(), 0);
|
||||
}, [status.id, ancestorsIds.size]);
|
||||
|
||||
const handleOpenCompareHistoryModal = (status: Status) => {
|
||||
|
|
Loading…
Reference in a new issue