kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'set-immediate' into 'develop'
Thread: replace call to setImmediate See merge request soapbox-pub/soapbox!2670environments/review-develop-3zknud/deployments/3796
commit
ecf34537d8
|
@ -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) => {
|
||||
|
|
Ładowanie…
Reference in New Issue