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

Cannot select previous years #7

Closed yaameen closed 4 years ago

yaameen commented 4 years ago

Year can only be selected from the current year on-wards. Cannot select previous years!

kenhyuwa commented 4 years ago

By default, date value is date now, then previous date is disabled you can setting with props startDate Thank you.

yaameen commented 4 years ago

Setting the startDate still does not allow you to select previous years.

Regardless it always start from 2020

On Mon, Jul 6, 2020 at 10:23 PM ken notifications@github.com wrote:

By default, date value is date now, then previous date is disabled you can setting with props startDate Thank you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kenhyuwa/vue-tailwind-picker/issues/7#issuecomment-654366698, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIH6U7PX3QJG3Q4LT5D5Y3R2ICBDANCNFSM4OQ66S3Q .

kenhyuwa commented 4 years ago

I have released new version, see CHANGELOG

qnox81 commented 4 years ago

I was trying to use with init prop set to false, but still i cannot go dates before now() date.

Is it possible to use it to f.e. enter born date like 1940-01-01?

<VueTailwindPicker
    :init="false"
    @change="(v) => born_date = v"
>
    <input id="born_date"
           name="born_date"
           v-model="born_date"
    />
</VueTailwindPicker>