-
Couldn't load subscription status.
- Fork 24.9k
Closed
Labels
BugComponent: TextInputRelated to the TextInput component.Related to the TextInput component.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
Having a TextInput that gets a value or defaultValue prop and has textAlign: 'center' in its styles causes a bug that puts the cursor at the right end of the input when the input is cleared.
React Native version:
0.60.5
Steps To Reproduce
- Have a TextInput that gets a
valueordefaultValueprop passed to it and has styletextAlign: center. - Type some text into the input.
- Clear the input.
- The input cursor jumps to the right end of the input.
Describe what you expected to happen:
Have the cursor at the center of the input after clearing the input.
Snack, code example, screenshot, or link to a repository:
<TextInput
style={{textAlign: 'center'}}
value={value}
/>```
vinayr and bdoycn
Metadata
Metadata
Assignees
Labels
BugComponent: TextInputRelated to the TextInput component.Related to the TextInput component.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.