Skip to content

Bug: moving the cursor by touching the input field in a different position #159

@sutgeorge

Description

@sutgeorge

Hello guys!

I found an issue that might be only reproducable on the iOS simulator, but I noticed that the iOS simulator doesn't allow the user to move the cursor by touching the input field in a different position.

Here's a patch to fix this:

diff --git a/node_modules/react-native-autocomplete-dropdown/src/index.tsx b/node_modules/react-native-autocomplete-dropdown/src/index.tsx
index 8494040..3da7fee 100644
--- a/node_modules/react-native-autocomplete-dropdown/src/index.tsx
+++ b/node_modules/react-native-autocomplete-dropdown/src/index.tsx
@@ -501,7 +501,7 @@ export const AutocompleteDropdown = memo<
           {LeftComponent}
           <Pressable
             style={styles.pressable}
-            pointerEvents={Platform.select({ ios: 'box-only', default: 'auto' })}
+            pointerEvents={Platform.select({ default: 'auto' })}
             onPressOut={onPressOut}>
             <InputComponent
               ref={inputRef}

I'm not sure why a box-only option is chosen for the iOS pointer events, but there you go.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions