TextInput textAlign center + value/defaultValue prop causes cursor to jump to the right end of input #26512
Labels
Bug
Component: TextInput
Related to the TextInput component.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Having a TextInput that gets a
value
ordefaultValue
prop and hastextAlign: '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
value
ordefaultValue
prop passed to it and has styletextAlign: center
.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:
The text was updated successfully, but these errors were encountered: