Skip to content

Commit

Permalink
CalendarInput: fix when no value
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed May 1, 2024
1 parent 7235440 commit af976a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions panel/src/components/Forms/Input/CalendarInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,15 @@ import { IsoDateProps } from "./DateInput.vue";
export default {
mixins: [InputProps, IsoDateProps],
data() {
const today = this.$library.dayjs();
return {
maxdate: null,
mindate: null,
month: null,
month: today.month(),
selected: null,
today: this.$library.dayjs(),
year: null
today: today,
year: today.year()
};
},
computed: {
Expand Down

0 comments on commit af976a7

Please sign in to comment.