Closed tasiotas closed 6 months ago
Version: 8.3.1 Repro: https://stackblitz.com/edit/vuepic-vue-datepicker-njwx53?file=src%2Fcomponents%2FPlayground.vue Open console and press button Set Today
This used to work for me, but on the latest version it gives me error. I am not sure why or what am I missing in the config.
Setting date as a range [date, date] works fine, but when I want to set single date, I get this error
Uncaught RangeError: Invalid time value
this is how I set the date
function today() { console.log('setting today'); var now = new Date(); pickerRef.value.parseModel(now); pickerRef.value.selectDate(); }
I found the correct way to input single date pickerRef.value.parseModel([now, now])
pickerRef.value.parseModel([now, now])
Version: 8.3.1 Repro: https://stackblitz.com/edit/vuepic-vue-datepicker-njwx53?file=src%2Fcomponents%2FPlayground.vue Open console and press button Set Today
This used to work for me, but on the latest version it gives me error. I am not sure why or what am I missing in the config.
Setting date as a range [date, date] works fine, but when I want to set single date, I get this error
Uncaught RangeError: Invalid time value
this is how I set the date