kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Thread: replace call to setImmediate
rodzic
2fb13a0145
commit
19bf51165c
|
@ -338,7 +338,7 @@ const Thread = (props: IThread) => {
|
||||||
offset: -146,
|
offset: -146,
|
||||||
});
|
});
|
||||||
|
|
||||||
setImmediate(() => statusRef.current?.querySelector<HTMLDivElement>('.detailed-actualStatus')?.focus());
|
setTimeout(() => statusRef.current?.querySelector<HTMLDivElement>('.detailed-actualStatus')?.focus(), 0);
|
||||||
}, [status.id, ancestorsIds.size]);
|
}, [status.id, ancestorsIds.size]);
|
||||||
|
|
||||||
const handleOpenCompareHistoryModal = (status: Status) => {
|
const handleOpenCompareHistoryModal = (status: Status) => {
|
||||||
|
|
Ładowanie…
Reference in New Issue