tbosch / autofill-event

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

Does not trigger when partials are used #11

Open meredrica opened 10 years ago

meredrica commented 10 years ago

The plugin works fine when the browser reloads the page but when angular partials are used (logout/login again with partials) it does not work.

tbosch commented 10 years ago

Hi, a workaround for this problem can be found here: https://github.com/tbosch/autofill-event/issues/7

meredrica commented 10 years ago

This requires JQuery which is not in use, but i'll see if i can figure something out.

gregbty commented 10 years ago

Did you ever figure out a way? I too do not want to use jQuery just for this workaround.

tbosch commented 10 years ago

This does not require jquery. See the associated plunker in #7: http://plnkr.co/edit/AWSlgcPHMFVCMxhuajDo?p=preview

tbosch commented 10 years ago

Well, it requires angular's jqlite (which Angular uses out of the box when jQuery is not present). Are you trying to use this plugin for a project that does not use Angular nor jQuery?

gregbty commented 10 years ago

Maybe I have a different issue? I do see the plugin firing however I am using a partial for my login page markup. When an application like Keepass does an autofill, the form controller in angular still does not update, so it may just be a timing issue.

Splaktar commented 10 years ago

I'm having the same issue with this not working for my app which is using partials. Running the latest Chrome. This did work for me though: http://stackoverflow.com/a/23919364/633107

aberenyi commented 10 years ago

The plunker does work with FF (Mozilla Firefox 33.1), unfortunately does not with Chromium (Chromium 38.0.2125.111) or Chrome (38.0.2125.122 m).

aberenyi commented 10 years ago

Also tested on Chrome 39.0.2171.13 dev-m & 40.0.2182.3 dev-m and Safari 8.0 (10600.1.25) - no luck whatsoever.