fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
246 stars 247 forks source link

Validation not work in reactive forms. #496

Open roma2341 opened 1 year ago

roma2341 commented 1 year ago

Describe the bug Validation not work in reactive forms. I added required validtor to input, but no error appears when no date range is selected.

Expected behavior When i add required validator to ngxDaterangepickerMd input it should be validated like other elements

roma2341 commented 1 year ago

Oh sorry, i added custom validator function, checking startDate/endDate and it works fine. My fault. I also added readonly to to prevent cases when users change input value, because when user change input value actual value not changes