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

changing values in Angular scope #8

Closed alexarsh closed 10 years ago

alexarsh commented 10 years ago

My stack is Django+Angular. I have login form with username and password. Autofill is not changing my values in Angular scope in firefox 26.0. I tried to do:

element.find('input[name="username"]').checkAndTriggerAutoFillEvent(); element.find('input[name="password"]').checkAndTriggerAutoFillEvent(); scope.init(); //just emptying the values

and it fixes the password field, but not the username field and I can't understand what the problem is.

Thanks, Alex A.

tbosch commented 10 years ago

Hi, can you create a sample page that shows the problem? See e.g. https://github.com/tbosch/autofill-event/blob/master/test/manual/login-form.html

Yes, calling checkAndTriggerAutoFillEvent manually should solve the problem...

tbosch commented 10 years ago

Closing this. Please create a new issue if you have a sample page...