selectTextOnFocus does not work with multiline text inputs iOS
See original GitHub issueA multiline textinput with selectTextOnFocus={true}
selects the text on focus, and then instantly unselects the text.
For an example repro, this code from RNTester will demonstrate the issue:
<TextInput
placeholder="text is selected on focus"
defaultValue="text is selected on focus"
selectTextOnFocus={true}
multiline={true}
/>
You can find this in the TextInput example page in RNTester on iOS as well.
React Native version: 0.61.4
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (4 by maintainers)
Top Results From Across the Web
Select text on focus does not work for multiline textInputs
The text inside my multiline textInput is not being selected even though 'selectTextOnFocus' is set to true. I know that the text will...
Read more >TextInput · React Native
A foundational component for inputting text into the app via a keyboard. Props provide configurability ... If true, the text input can be...
Read more >TextInput - React Native Archive
Determines the types of data converted to clickable URLs in the text input. Only valid if multiline={true} and editable={false} . By default no...
Read more >React Native Text Input Component - GeeksforGeeks
maxLength: It is used when we do not want to exceed the particular number of characters. So we provide a fixed maximum length...
Read more >iOS : React Native multi line TextInput, text is centered
iOS : React Native multi line TextInput, text is centered [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS : React ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome, I’d love to take it.
Thanks for the comments all! I’m glad this is resolved, I’ll close it out!