@wizishop/angular-components 15.1.140 → 15.1.141

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.
@@ -2718,11 +2718,15 @@ class CalendarComponent {
2718
2718
  selectedDates.startDate.setHours(this.dateSelected.getHours());
2719
2719
  selectedDates.startDate.setMinutes(this.dateSelected.getMinutes());
2720
2720
  this.dateSelected = selectedDates.startDate;
2721
- if (selectedDates.endDate) {
2721
+ if (selectedDates.endDate && this.isRange) {
2722
2722
  selectedDates.endDate.setMinutes(this.dateSelectedEnd.getMinutes());
2723
2723
  selectedDates.endDate.setMinutes(this.dateSelectedEnd.getMinutes());
2724
2724
  this.dateSelectedEnd = selectedDates.endDate;
2725
2725
  }
2726
+ else {
2727
+ selectedDates.endDate = this.dateSelected;
2728
+ this.dateSelectedEnd = this.dateSelected;
2729
+ }
2726
2730
  this.triggerDateSelectedChange();
2727
2731
  }
2728
2732
  triggerDateSelectedChange() {
@@ -2734,6 +2738,7 @@ class CalendarComponent {
2734
2738
  });
2735
2739
  }
2736
2740
  triggerChange(event) {
2741
+ console.log(event);
2737
2742
  this.changeData.emit(event);
2738
2743
  }
2739
2744
  openCalendar(value = null) {