Totati/ngx-mat-errors

Does not work with mat-date-range-input

Totati opened this issue · 3 comments

As MatDateRangeInput does not have a ngControl NgxMatErrors won't initialise.

I kind of have the same problem with mat-calendar

There has been a draft in my local repo, but I don't know how that solution would solve your issue, as MatCalendar is not a FormControl, nor could be put in a MatFormField.

@Totati nice. I already wrapped the mat-calendar in a component that implements ControlValueAccessor. Maybe if I extend it from AbstractControl it would work with your draft? 😄

Btw, I love this package. It saves tons of work.