Skip to content

Commit 99912ca

Browse files
committed
change to setTimeout
1 parent bb9318f commit 99912ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/focusComposerWithDelay/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function focusComposerWithDelay(textInput: InputType | null): FocusComposerWithD
3333
return;
3434
}
3535
// When the closing modal has a focused text input focus() needs a delay to properly work.
36-
InteractionManager.runAfterInteractions(() => textInput.focus());
36+
setTimeout(() => textInput.focus(), 0);
3737
if (forcedSelectionRange) {
3838
setTextInputSelection(textInput, forcedSelectionRange);
3939
}

0 commit comments

Comments
 (0)