Autofill event polyfill
This is a fork of autofill-event by TBosch. That shim depends on jQuery on the page this fork does not
This is a polyfill that fires change events when browsers autofill form fields without firing a change event.
npm install vanilla-autofill-event
Add the script
This will do the following:
- after DOMContentLoaded: check all input fields
- a field is left: check all other fields in the same form
How it works
Checking an element for auto fill: Compare the current
valueof the element with the remembered value. If it's different, trigger a change event.
- open the manual runner and follow instructions
- They need to be run with a webserver and without iframes, otherwise Chrome would not autofill username/password