ngx-daterangepicker-material
ngx-daterangepicker-material copied to clipboard
datesUpdated emitted twice when autoApply and singleDatePicker set to true
StackBlitz example: https://stackblitz.com/edit/angular-tvqnj8
It seems like, even without singleDatePicker
set to true
, the issue still exists.
sorry to bother. does anybody know how to solve this problem?
@jiangyh1024 for now, you can handle it from the component
dateRangeFired = false;
applyFilter() {
if (this.dateRangeFired) {
this.dateRangeFired = false;
return;
}
this.dateRangeFired = true;
// your code
}
This issue will no longer exist in version 3+ once https://github.com/fetrarij/ngx-daterangepicker-material/pull/271 gets merged in ;)