ngx-daterangepicker-material icon indicating copy to clipboard operation
ngx-daterangepicker-material copied to clipboard

datesUpdated emitted twice when autoApply and singleDatePicker set to true

Open shaejaz opened this issue 5 years ago • 5 comments

StackBlitz example: https://stackblitz.com/edit/angular-tvqnj8

shaejaz avatar Oct 29 '19 10:10 shaejaz

It seems like, even without singleDatePicker set to true, the issue still exists.

ThPadelis avatar Nov 16 '19 13:11 ThPadelis

I am experiencing this issue as well.

Most likely also related to this issue.

rendermouse avatar Dec 04 '19 05:12 rendermouse

sorry to bother. does anybody know how to solve this problem?

jiangyh1024 avatar Feb 19 '20 01:02 jiangyh1024

@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
  }

duxor avatar Apr 03 '20 05:04 duxor

This issue will no longer exist in version 3+ once https://github.com/fetrarij/ngx-daterangepicker-material/pull/271 gets merged in ;)

Timebutt avatar Apr 26 '20 10:04 Timebutt