kenhyuwa / vue-tailwind-picker

:tada: Datepicker component for vue.js build with Tailwind CSS & dayjs date library
https://vue-tailwind-picker.netlify.app/
193 stars 38 forks source link

Can't select dates in the past #26

Closed maxheckel closed 3 years ago

maxheckel commented 3 years ago

Is there something I'm missing from the config? I have :init="false" but my picker only lets me select today or any day after.

 <VueTailWindPicker
                    style="position: absolute" :z-index="999"
                    :init="false"
                    @change="(v) => newTask.start_date = v">
                    <input v-model="newTask.start_date" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-dark-slate-gray-200 focus:ring focus:ring-dark-slate-gray-200 focus:ring-opacity-50"
                           placeholder="Example initial value">
                </VueTailWindPicker>
maxheckel commented 3 years ago

Never mind, found it in a past issue. Set :date-range="true" and it works! Wish that was in the docs though