hilongjw / vue-datepicker

[Deprecated] calendar and datepicker component with material design for Vue.js
http://hilongjw.github.io/vue-datepicker/demo.html
MIT License
702 stars 207 forks source link

multi-day invalid date after initial selection #57

Open webnoob opened 8 years ago

webnoob commented 8 years ago

Hi,

Using Vue2 I have this:

option: { type: 'multi-day', week: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'], month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], format: 'DD/MM/YYYY', placeholder: 'Due from...', buttons: { ok: 'Ok', cancel: 'Cancel' } }

When I select the date, I can select 2 dates with no problem BUT the format is ignored and after the initial selection, if I select the date box again I get an Invalid Date message where the year / month should be. Clicking the arrow takes me to the correct month but if I try and select a different range, it adds the dates to the array and doesn't clear the existing ones.