You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an issue with the TextInput component in react-native-paper on iOS devices and simulators. The problem arises when using the secureTextEntry prop to toggle password visibility in a password field.
Description
using react-native-paper I'm getting an issue in the iOS device and simulator, which is related to the text field secureTextEntry.
When I enter a value in a password field as you can check in the attached video. I toggle the showPassword to false and they already have some value then if I type to add some more characters in the password field then my password field value becomes null and initiates again but if my showpassword value is true mean secureTextEntry is true means the user will be able to check the password, and if I try to enter some more characters, it will work fine as expected. apart from that if I click in another field and back to the password field if the showpassword value is false then the password value becomes null and initiates again if the showpassword value is true then it works fine.
Steps to Reproduce
Enter a value in the password field.
Toggle showPassword to false (secureTextEntry is set to false).
Attempt to add more characters to the password field.
The password field value becomes null and resets.
Toggle showPassword to true (secureTextEntry is set to true).
Enter more characters; the field works as expected.
Click another field and then return to the password field.
If showPassword is false, the password value becomes null and resets.
Hey @IsmailParacha
it looks like default iOS behavior.
Can you check if the same behavior is with TextInput from react-native, or even run any other app having password field and check its behavior?
Environment
React Native Version: 0.71.14
react-native-paper Version: "^4.11.2"
Platform: iOS (device and simulator)
I am experiencing an issue with the TextInput component in react-native-paper on iOS devices and simulators. The problem arises when using the secureTextEntry prop to toggle password visibility in a password field.
Description
using react-native-paper I'm getting an issue in the iOS device and simulator, which is related to the text field secureTextEntry.
When I enter a value in a password field as you can check in the attached video. I toggle the showPassword to false and they already have some value then if I type to add some more characters in the password field then my password field value becomes null and initiates again but if my showpassword value is true mean secureTextEntry is true means the user will be able to check the password, and if I try to enter some more characters, it will work fine as expected. apart from that if I click in another field and back to the password field if the showpassword value is false then the password value becomes null and initiates again if the showpassword value is true then it works fine.
Steps to Reproduce
Preview
Simulator.Screen.Recording.-.iPhone.15.-.2024-05-22.at.14.54.14.mp4
Code
Note
This issue only occurs on iOS. On Android, the password field works as expected.
The text was updated successfully, but these errors were encountered: