Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fixed date range persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
MuzafferDede committed Aug 7, 2021
1 parent 10da27f commit 41c8b10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/js/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -76341,7 +76341,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
hourIncrement: _this.hourIncrement,
minuteIncrement: _this.minuteIncrement,
locale: { firstDayOfWeek: _this.firstDayOfWeek },
mode: _this.mode
mode: _this.mode,
defaultDate: _this.mode ? _this.value.split('to') : _this.value
});
});
}
Expand Down
3 changes: 2 additions & 1 deletion resources/js/components/DateTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
if (this.mode === "range") {
this.placeholder = "Choose date range";
}
this.$nextTick(() => {
this.flatpickr = flatpickr(this.$refs.datePicker, {
enableTime: this.enableTime,
Expand All @@ -34,6 +34,7 @@ export default {
minuteIncrement: this.minuteIncrement,
locale: { firstDayOfWeek: this.firstDayOfWeek },
mode: this.mode,
defaultDate: this.mode ? this.value.split('to') : this.value
});
});
},
Expand Down

0 comments on commit 41c8b10

Please sign in to comment.