atais / ng2-eonasdan-datetimepicker

A wrapper directive around the Eonasdan Datepicker v4 component.
MIT License
34 stars 23 forks source link

Fix setting dirty upon control init #65

Closed jmartasek closed 5 years ago

jmartasek commented 5 years ago

Without the change the containing form (and the control) will be set to dirty right at the initialization, since writeValue is triggering the onChange event.

The expected behaviour is that only user interaction with the control should set dirty flag. Programatic change should not.