Skip to content
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

Cursor jumps on multiline text inputs #2127

Open
AdrianFahrbach opened this issue May 22, 2024 · 3 comments
Open

Cursor jumps on multiline text inputs #2127

AdrianFahrbach opened this issue May 22, 2024 · 3 comments
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@AdrianFahrbach
Copy link

Environment

react-native -v: v0.73.8
npm ls react-native-macos: v0.73.26
node -v: v20.12.1
npm -v: v10.5.0
yarn --version: not in use
xcodebuild -version: Xcode 15.4 Build version 15F31d

Steps to reproduce the bug

  1. Create a TextInput component
  2. Set its multiline prop to true
  3. Type in a few words and blur the input
  4. Now click on it again, somewhere in the middle of the text
  5. Type something and your cursor should jump to the end

Expected Behavior

The cursor should keep its position.

Actual Behavior

In the attached video I'm testing it with multiline true and false, two times each.

screenshot.mp4

Reproducible Demo

You could test this in our Jira Time Tracker repository.
However to make this work a .env file with a Jira API key as well as a Jira account are required. Send me a mail to [email protected] and I can provide you with both.

Additional context

This could be related to #2066 and/or #2090.

@AdrianFahrbach AdrianFahrbach added the bug Something isn't working label May 22, 2024
@Saadnajmi
Copy link
Collaborator

Tried running Jira Time tracker through test flight, but don't have a Jira account (We use Azure Devops here at Microsoft :P), so I can't easily repro (will email though).

For the TextInput, are you setting the value property on it?

@AdrianFahrbach
Copy link
Author

AdrianFahrbach commented May 23, 2024

For the TextInput, are you setting the value property on it?

Yes, I'm setting the value through a state. The input in question is this one.
Just answered your mail btw!

@EmpiteNishain
Copy link

so any update on this? any workaround ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

3 participants