@klippa/ngx-enhancy-forms 7.2.0 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1479,8 +1479,8 @@
1479
1479
  if (this.multiple) {
1480
1480
  this.datePickerRef.close = function () {
1481
1481
  };
1482
- if (this.selectedDates.some(function (e) { return e.getTime() === date.getTime(); })) {
1483
- this.selectedDates = this.selectedDates.filter(function (e) { return e.getTime() !== date.getTime(); });
1482
+ if (this.selectedDates.some(function (e) { return dateFns.isSameDay(e, date); })) {
1483
+ this.selectedDates = this.selectedDates.filter(function (e) { return !dateFns.isSameDay(e, date); });
1484
1484
  }
1485
1485
  else {
1486
1486
  this.selectedDates = __spread(this.selectedDates, [date]);