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

Causes datepicker form elements to be marked dirty in AngularJS & AngularStrap #23

Open james-bell opened 10 years ago

james-bell commented 10 years ago

When there's a form element using AngularStrap's bs-datepicker autofill-event causes the element to be marked as dirty, Angular then sees the form as dirty too. Depending on the timing, the date may show as dirty immediately or only after you click on another field or two. Plunker showing this is here: http://plnkr.co/edit/gYPSOaXARoHiCrkeTAjh?p=preview

Also seen with Angular 1.2.6 and with Angular-Strap 2.1.1. Firefox 32.0.3 & Chrome 37

Just guessing but somehow autofill-event is seeing the instantiation of the bs-datepicker element as an autofill event?