Open SDJeff opened 6 years ago
If you set open-date for the component you not pass it through i mean. In L194 of DatePicker.vue openDate () { this.setPageDate() },
openDate () { this.setPageDate() },
is no param for L804 there is it then everytime Date()
setPageDate (date) { if (!date) { if (this.openDate) { date = new Date(this.openDate) } else { date = new Date() } }
It's a prop. https://github.com/charliekassel/vuejs-datepicker/blob/master/src/components/Datepicker.vue#L131-L135
If you set open-date for the component you not pass it through i mean. In L194 of DatePicker.vue
openDate () { this.setPageDate() },
is no param for L804 there is it then everytime Date()
setPageDate (date) { if (!date) { if (this.openDate) { date = new Date(this.openDate) } else { date = new Date() } }