-
Notifications
You must be signed in to change notification settings - Fork 47k
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
IE 11 "prompt to remember password" regression bug since 15.2.0 #12749
Comments
Anybody know of a workaround for this? |
Hey @benlonsdale! If memory serves, a lot of this boils down to touching the password input's value property/attribute. At least, this definitely fixed the "eye" icon to expose the password. This might be fixed. We made some changes to prevent premature validation FF on required inputs that might also fix this issue. Testing on 16.4.1, I can get the prompt to show up: Can you take a look at my fork for 16.4.1 and confirm? |
@nhunzaker will this backported to 15.x? |
Hey! Sorry for the delay. That is a good question. I am not sure if there was another 15.x release planned, but I can bring it up with the team. I'll report back tomorrow! |
At this point it seems unlikely that we'd do another 15.x release. |
Would you consider making an exception for this clear bug regression? |
No, we don't backport anything to old majors except critical issues. It's too risky to accidentally break havoc. Especially with 15.x our release process was very complicated because of two side-by-side codebases, and it's not worth the risk touching that again. This bug is not special — we've had quite a few regressions like this (hopefully most of them are fixed). I'm closing since this is reported to be fixed in the latest version of React. Sorry couldn't help more. |
16.4.1 works for me. Thanks! |
This seems working for Edge now with React 16.4.2 (and 16.4.1) React 15.1.0 on IE 11: Code sandbox example: Code sandbox editor doesn't support IE 11. But the preview can be open in IE 11: |
Reopening to track IE11 issue. |
Quick tests indicate that setting |
any resolution on this one? (or maybe workaround)? |
I finally found a workaround for this. TLDR: I do not know exactly why it works, but I believe value changes are not properly recognized on controlled components. The function mentioned above is IE-exclusive, you need a try-catch block for it, because it's always shown as undefined, even in IE. Cloning is necessary to ensure that all values are present from the beginning. |
@bastischulz Where do you put that function call in your component? (for example, how to you modify the code in the sandbox code linked to above?). (I tested you workaround, and it works!, but I'm not sure where to put it: In my hacky test I added it to a submit-handler for the form, and also added a "ref" to the form in render() so that I have the form to call cloneNode() on. I'm not convinced this is the best way to do it.)
|
@bastischulz solution works. Tested on IE11 with React 15.6.2. |
@erikrenberg - We have a more complex Form, but I did something like this: https://codesandbox.io/s/yw40ny71x |
We are dropping support for IE in React 18, so this won't get a fix. |
And I'm happy I don't have to support it anymore 😝 |
Note: this issue seems solved for Edge but not for IE 11, see #12749 (comment)
This issue was already raised, but since it was closed, I'm opening a new one so we can get more traction on this.
I'm still having this issue with both IE and Edge:
Works with 15.1.0: https://codesandbox.io/s/lpvz0zy9wq
Doesn't work with 15.2.0: https://codesandbox.io/s/o9kl2jzo1q
Doesn't work with 15.6.2: https://codesandbox.io/s/38kp95wl96
Doesn't work with 16.3.1: https://codesandbox.io/s/xjpk3wr55p
In order to test this effectively, you have to follow a few steps:
Using Edge, go to Settings >> View Advanced Settings, under Privacy and Services
make sure you have Offer to save passwords enabled:
make sure you don't have any passwords saved in the codesandbox.io domain:
Steps to reproduce when IT WORKS (15.1.0)
Steps to reproduce when IT DOESN'T WORK (15.2.0, 15.6.2, 16.3.1)
The text was updated successfully, but these errors were encountered: