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

[TextInput]: autoFocus inconsistent when multiline is enabled #2581

Open
1 task done
kilbot opened this issue Sep 21, 2023 · 0 comments
Open
1 task done

[TextInput]: autoFocus inconsistent when multiline is enabled #2581

kilbot opened this issue Sep 21, 2023 · 0 comments
Labels

Comments

@kilbot
Copy link

kilbot commented Sep 21, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

Using autoFocus with multiline on the TextInput component either doesn't focus (Chrome) or sets the cursor at the start (Safari).

Expected behavior

Cursor should jump to the end of text when multiline and autoFocus enabled, ie: consistent with non-multiline behaviour.

Steps to reproduce

Test case shows the difference for multiline behaviour.

Test case

https://snack.expo.dev/@kilbot/textinput-v-textarea-autofocus
https://codesandbox.io/s/rough-https-82vkcm

Additional comments

No response

@kilbot kilbot added the bug label Sep 21, 2023
@kilbot kilbot changed the title (web)[TextInput]: autoFocus inconsistent when multiline is enabled [TextInput]: autoFocus inconsistent when multiline is enabled Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant