File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/components/TextInput/BaseTextInput/implementation Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ function BaseTextInput(
278
278
279
279
// Height fix is needed only for Text single line inputs
280
280
const shouldApplyHeight = ! isMultiline && ! isMarkdownEnabled ;
281
+
282
+ // Fix iOS cursor jumping when entering first character using HW keyboard https://github.com/Expensify/App/pull/59078#issuecomment-2802834037
283
+ const selection = inputProps . selection ?. end === 0 && inputProps . selection ?. start === 0 ? undefined : inputProps . selection ;
284
+
281
285
return (
282
286
< >
283
287
< View style = { [ containerStyles ] } >
@@ -397,7 +401,7 @@ function BaseTextInput(
397
401
keyboardType = { inputProps . keyboardType }
398
402
inputMode = { ! disableKeyboard ? inputProps . inputMode : CONST . INPUT_MODE . NONE }
399
403
value = { uncontrolled ? undefined : value }
400
- selection = { inputProps . selection }
404
+ selection = { selection }
401
405
readOnly = { isReadOnly }
402
406
defaultValue = { defaultValue }
403
407
markdownStyle = { markdownStyle }
You can’t perform that action at this time.
0 commit comments