TextInput can't be set to undefined programmatically #34862
Labels
Component: TextInput
Related to the TextInput component.
Resolution: Fixed
A PR that fixes this issue has been merged.
Description
Noticed that after updating to 0.70.1, our
<TextInput>
components weren't clearing their values when setting them programmatically toundefined
.This behaviour used to work on versions prior to the 0.70.x.
Version
0.70.x
Output of
npx react-native info
Steps to reproduce
Generate a project using
react-native
version0.70.x
.<TextInput>
component.undefined
programmaticallyResult:
The value shown on the
<TextInput>
component will not be cleared and still show the value entered.Prior to
0.70.x
react-native
version, the value shown on the<TextInput>
would be cleared since it's been set toundefined
.Snack, code example, screenshot, or link to a repository
Created a repository having two different projects with the same setup.
One used
react-native
0.69.6, and the other one 0.70.1.https://github.com/Noitham/TextInputIssue
Screen.Recording.2022-10-04.at.15.00.22.mov
The text was updated successfully, but these errors were encountered: