coachcare / npm-datepicker

Material Datepicker Fork with TimePicker by CoachCare
MIT License
32 stars 18 forks source link

Use within Angular material forms causes validation errors #10

Closed Enngage closed 6 years ago

Enngage commented 6 years ago

This one might a bit tricky - the problem is that if you use your version of mat-datepicker, the validation of this field will fail if its used inside mat-form-field and if the field is required. This is likely connected to https://github.com/angular/material2/issues/9619 and using custom validation might be a solution in this case.

See snapshot:

ab

Thanks!

matheo commented 6 years ago

@Enngage yeah, yesterday I introduced an error validating the parsed value from the input, but now it's fixed in 0.9.4. I just released it with some style fixes. Looking forward for your feedback ;)

Enngage commented 6 years ago

Thank you! I can confirm it works now :-)