Open ZaLiTHkA opened 2 years ago
old webkit bug whereas autofill does not emit an input event
Workaround is to register a change event handler as in https://gist.github.com/dtarnawsky/fc92869c1c67b9c74c66de8af3e081b2
See also https://capacitorjs.com/docs/guides/autofill-credentials
firstly, two important notes here:
15.3.1 (19D52)
.when running the app on iOS, selecting either the "email" or "password" and filling in details with a password manager does not mark the other field as "filled in", resulting in the "Login" button remaining disabled with no further feedback.
because the "Passwords" auto-fill prompt only appears when a login form is given focus, the observed behaviour changes depending on which field was focused to initiate this process. where the problem described here will then affect the other input field.
furthermore, the form field validation messages only show for an input field after that field has received and lost focus. I would assume in order to validate the user's input after something is entered.
see the following screenshots for clarification (app logo and email address obscured for privacy reasons, this is an un-announced application for my current employer):
please note: this problem does not happen on Android, both login form fields refresh correctly and the "Login" button is enabled as expected.
my
ionic info
output is as follows:and my
package.json
file lists the following dependencies:my
login.page.html
file contains the following:while my
login.page.ts
component file contains the following (with unrelated code blocks removed):