File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,14 @@ export default function SmartUrlInput(props: Props): Node {
86
86
useFocusEffect (
87
87
useCallback ( ( ) => {
88
88
if ( textInputRef . current ) {
89
+ // Sometimes the effect of this `.focus()` is immediately undone
90
+ // (the keyboard is closed) by a Keyboard.dismiss() from React
91
+ // Navigation's internals. Seems like a complex bug, but the symptom
92
+ // isn't terrible, it just means that on back-navigating to this
93
+ // screen, sometimes the keyboard flicks open then closed, instead
94
+ // of just opening. Shrug. See
95
+ // https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/realm-input/near/1346690
96
+ //
89
97
// `.current` is not type-checked; see definition.
90
98
textInputRef . current . focus ( ) ;
91
99
}
You can’t perform that action at this time.
0 commit comments