icehaunter / vue3-datepicker

Simple datepicker component for Vue 3
https://icehaunter.github.io/vue3-datepicker/
MIT License
150 stars 153 forks source link

Empty Datepicker #43

Closed nahojj closed 3 years ago

nahojj commented 3 years ago

I'm trying to initialize the date-picker as empty so all of my users are forced to pick a day but it seems like it doesn't have the support and expects to have a Date object as default?

icehaunter commented 3 years ago

Passing the null to v-model should do the trick. That is not in the docs, however, it is in the local example (npm run dev in this repository). If you're having an issue with passing null there - please let me know with more details.