-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ios] "Choose My Own Password" not calling onChange #23921
Comments
Thank you for the reproduction. We've confirmed the issue. The issue is marked as mid priority because we want to promote using these security features. A PR to fix this would be much appreciated! |
Maybe this can help for making a PR: https://stackoverflow.com/q/53566570/2525941
is not being called when choosing "Choose My Own Password". |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
not stale. |
Is any of this problem still happening? |
yes |
Still happens for me. I've tried everything with my forms and still the strong password is a pain to deal with. The only solutions I've found that "work" so far are to add hidden inputs with This is also on just basic forms with |
I have this problem too |
I have this problem too +1 |
I have the same problem |
I still have this problem, that none of the standard callbacks are called. Has anybody solved the problem with a work around? |
@Luckfried Using <NavigationEvents
onWillBlur={() => setDisableAuthInput(true)}
onWillFocus={() => setDisableAuthInput(false)}
/> It will disable any "auth" inputs and make them uneditable when navigating away from the page. I found that when there are several pages in the stack, the strong password will trigger changes on pages in the stack which are not visible. |
Have there been any updates on this? This is very problematic! |
@johnkahn did you find a workaround? |
@LucidNinja I did not, unfortunately. Still an issue for me. |
@johnkahn - that's frustrating. I've tried looking into a work around or even writing a patch, but I'm no Objective-C genius! |
It looks like this is an issue with iOS's UITextFieldDelegate. Found a similar issue on Stack Overflow for native iOS. It does not fire a change when 'Choose My Own Password' is pressed. |
Faced the same problem. I hopped over it by listen to |
You can fix this problem with this solution:
Now, you can check if the password is empty before submit. |
Thanks @JordanLauriol - this workaround seems to have solved the problem! |
Awesome! Glad there's a temporary solution. Thanks @donalbertico and @JordanLauriol for the workaround 👍 It's acceptable for my uses until there is an official fix in place |
I feel this issue should be bumped up in priority. Promoting the use of security-minded features is awesome but not calling the If my Input field is updating component state when Please reconsider the priority of this and respect Apple's implementation of auto-gen password! I have no way to clear out auto-generated password from component state even after the user explicitly opted out of using an auto-generated password. |
Faced with the same issue [email protected] |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Not stale, it's still an issue. There is a workaround, but will still cause issues out of the box. |
Hey! I am facing the same issue. I want to disable my button if the user still not have enter password. Unfortunately, when user opt for "choose its own password", the Apple strong passwords are stille in the state of my application. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Not stale |
I'm still having this issue with react-native 0.66.4 |
RN 0.68.1 problem still exists |
I am also having this issue RN 0.64 |
Issue still is present on RN 0.69. Thanks @JordanLauriol for the temporary fix. |
Issue still exists! Why this is not treated as higher priority? RN 0.69.5 |
I am also facing this issue RN 0.70.8 |
The workaround with |
I am also having this issue RN 0.68.2 |
I have the same issue, please fix it :(( |
I'm also having this problem RN 0.72.6. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Still happens at 0.73.2. |
Not stale, please reopen |
🐛 Bug Report
When you have an input with
secureTextEntry
the iOSStrong Password
dialog pops up and it changes the text to the generated password. This works as expected andonChange
is called, but when you pressChoose My Own Password
(picture below), it doesn't callonChange
.I saw #21261 was closed because it didn't follow the format, and I couldn't find another issue created for this
To Reproduce
<TextInput />
withsecureTextEntry
on iOS 12+console.log
ononChange
andonChangeText
to see what is calledStrong Password
popupChoose My Own Password
onChange
oronChangeText
Expected Behavior
Pressing
Choose My Own Password
callsonChange
andonChangeText
with an empty string. That way we know that the user is no longer using the secure password.Code Example
https://snack.expo.io/@johnkahn/choose-my-own-password
Cannot be run on the simulator, must be run from an iPhone iOS 12+ with
Autofill Passwords
turned on in the Settings.Environment
The text was updated successfully, but these errors were encountered: