-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: ion-input autofill does not work when input is nested within other Ionic components #19478
Comments
Did you find any solution for this? |
Update: When the Stencil app is loaded as a web app on a device in Safari, it actually works correctly. Somehow, the bug seems to happen when the app is run as a Capacitor app. |
Update2: I tried to run a test app in a different kind of Webview environment. It's a simple wrapper app around the default iOS webview. The problem exists here too. So I guess it doesn't have anything to do with Capacitor, but could be a bug in the iOS WKWebView?! Very weird... |
Update3: I ran more experients (some attributes omitted for brevity): Credentials autofill works for both fields in this case:
As soon as one of the divs is replaced by However, if the divs are replaced by There seems to be something special about |
FYI there is a Webkit bug out for this: https://bugs.webkit.org/show_bug.cgi?id=203299 Will have to wait for an Apple fix. |
@bryplano Good find, thanks for pointing this out. In the meantime, I just redesign my login form to use |
No problem @cmaas! :) Workaround: For folks who come across this issue, workarounds include un-nesting the Solution: Will need to be provided by Apple - Webkit bug is here: https://bugs.webkit.org/show_bug.cgi?id=203299 |
@bryplano I also opened an issue at the capacitor repo the other day, because I thought it was related to it. I think it can be closed too: ionic-team/capacitor#2211 |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic Version:
[x] 4.x
Current behavior:
When attempting to use the username/password autofill prompt provided by the operating system (like iOS with Keychain or 1Password), if an
ion-input
element is nested within another Ionic component (likeion-item
orion-row
), the autofill capability will not be provided to the user.Expected behavior:
<ion-input>
components should allow for autofilling regardless of whether or not they are nested (within reason) in other Ionic components.Related code:
Repo: https://github.com/bryplano/UsernameRepro
Steps to reproduce:
See
README.md
on the included sample repository.Short version:
ion-input
components - one for a username and one for a password - onto a single page app.ion-input
components are nested as part of anion-grid
or anion-list
in some manner, theion-input
for username will not allow the user to autofill a value. Only theion-input
for password will autofill properly.Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: