Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sutgeorge opened this issue Jan 27, 2025 · 0 comments

Comments

@sutgeorge
Copy link

sutgeorge commented Jan 27, 2025

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant