Controlled TextInput no longer works correctly #19348
Labels
Component: TextInput
Related to the TextInput component.
Impact: Regression
Describes a behavior that used to work on a prior release, but stopped working recently.
Resolution: Locked
This issue was locked by the bot.
Controlled TextInput's value prop should be the source if truth, but that's no longer the case.
Environment
Environment:
OS: macOS High Sierra 10.13.4
Node: 8.11.1
Yarn: Not Found
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.1 AI-173.4697961
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.4 => 0.55.4
Steps to Reproduce
Render a TextInput, and give it a hardcoded value which is never updated
<TextInput value="Hello world" />
Expected Behavior
No matter how much you type, the value should remain unchanged.
Actual Behavior
The value changes. This is clearly a regression because after downgrading to 0.53, it works as expected.
The text was updated successfully, but these errors were encountered: