tbosch / autofill-event

A polyfill to fire a change event when the browser auto fills form fields
MIT License
383 stars 53 forks source link

autofill-event doesn't fit with a submit button/input binding to the form state #28

Open e-cloud opened 9 years ago

e-cloud commented 9 years ago

this poly fill doesn't fit with a submit button/input binding to the form state. unless you click on the page any point you want to trigger a digest (it seems the action trigger the browser to do some real filling), then the button become enable. Test page with manual tests

prettycode commented 9 years ago

I also found this, @e-cloud. Do you have a workaround? I have to click somewhere on the page before Chrome fires the change event on the form input element. Chrome is triggering change on my <input type="email">, but not on my <input type="password"> until I click the page.

e-cloud commented 9 years ago

we hit the same issue. i haven't found a solution with my poor knowledge :sob:

ghost commented 9 years ago

Any workarounds for this issue yet?

stevegal commented 8 years ago

Chrome will not allow a password field to reveal its content in javascript until the user has interacted with the page. I've done a PR that would allow you to attach a listener on your button that you could listen for.

LeonardoGentile commented 8 years ago

+1 same issue for me

stevegal commented 8 years ago

try https://github.com/stevegal/autofill-event which is awaiting a merge request. Note you still can't get the contents of the password until the user has interacted with the form, but you can register and get notified if the password field has been filled in so you can respond as if it's filled.