From 6ff76f57c4d4303d98c48140e846aeabc3cc4397 Mon Sep 17 00:00:00 2001 From: Nodonisko Date: Tue, 22 Apr 2025 18:48:57 +0200 Subject: [PATCH] fix: cursor is unable to reach before the first digit in Time using backspace button --- .../TextInput/BaseTextInput/implementation/index.native.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/TextInput/BaseTextInput/implementation/index.native.tsx b/src/components/TextInput/BaseTextInput/implementation/index.native.tsx index 1392077986e1e..435490399004a 100644 --- a/src/components/TextInput/BaseTextInput/implementation/index.native.tsx +++ b/src/components/TextInput/BaseTextInput/implementation/index.native.tsx @@ -266,9 +266,6 @@ function BaseTextInput( // Height fix is needed only for Text single line inputs const shouldApplyHeight = !isMultiline && !isMarkdownEnabled; - // Fix iOS cursor jumping when entering first character using HW keyboard https://github.com/Expensify/App/pull/59078#issuecomment-2802834037 - const selection = inputProps.selection?.end === 0 && inputProps.selection?.start === 0 ? undefined : inputProps.selection; - return ( <> @@ -387,7 +384,6 @@ function BaseTextInput( keyboardType={inputProps.keyboardType} inputMode={!disableKeyboard ? inputProps.inputMode : CONST.INPUT_MODE.NONE} value={uncontrolled ? undefined : value} - selection={selection} readOnly={isReadOnly} defaultValue={defaultValue} markdownStyle={markdownStyle}