charliekassel / vuejs-datepicker

A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations
MIT License
2.61k stars 732 forks source link

open-date not set #372

Open SDJeff opened 6 years ago

SDJeff commented 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() },

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() } }

charliekassel commented 6 years ago

It's a prop. https://github.com/charliekassel/vuejs-datepicker/blob/master/src/components/Datepicker.vue#L131-L135