kenhyuwa / litepie-datepicker

Litepie Datepicker is a date range picker component for Vue.js and Tailwind CSS, dependent to day.js.
https://litepie.com
MIT License
373 stars 75 forks source link

Uncaught ReferenceError: start is not defined #15

Closed alesf closed 3 years ago

alesf commented 3 years ago

I came upon this error today: Uncaught ReferenceError: start is not defined

On this line: https://github.com/kenhyuwa/litepie-datepicker/blob/655bced86ba05787389d20fce20186fe28dd7cf8/src/litepie-datepicker.vue#L747

I think this is missing on the line before: const [start, end] = Object.keys(props.modelValue);

alesf commented 3 years ago

I guess this line is also problematic for the same reason:

https://github.com/kenhyuwa/litepie-datepicker/blob/655bced86ba05787389d20fce20186fe28dd7cf8/src/litepie-datepicker.vue#L771

kenhyuwa commented 3 years ago

Fix on (v1.0.14). Thank you.