Closed
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
value
ordefaultValue
prop 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}
/>```