Filled TextInput sends an event with empty ev.nativeEvent.text after switching secureTextEntry from false to true #34337
Labels
Component: Switch
Component: TextInput
Related to the TextInput component.
Needs: Triage 🔍
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
This is a common situation when you need to make an password input with show/hide functionality.
Found the bug on iOS simulator.
When you entered a few symblols on field then switched secureTextEntry to false and continue typing you lose the symbols entered before
I found an unexpected event with empty text appears after first changing after switching secureTextEntry from false to true
Screen.Recording.2022-08-03.at.10.51.50.mov
It also reproducable on the sandbox on your official documentation (but only on iOS platform)
Version
0.69.3
Output of
npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 12.5
CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Memory: 76.31 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.7.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.15.0 - /usr/local/bin/npm
Watchman: 2022.07.04.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.4/13F17a - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: ^0.69.3 => 0.69.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Snack, code example, screenshot, or link to a repository
https://snack.expo.dev/Xv_j_Aure (only iOS, can't reproduce on Web or Android)
The text was updated successfully, but these errors were encountered: