Skip to content

First selectable date - 01-01-1970 #34

@AndrisValisins

Description

@AndrisValisins

Describe the bug
Hi, currently there is no option to select dates before 01-01-1970, even when minDate prop is set to earlier dates.
Using default input with type="date" allows update value to earlier days but modal doesn't allow to selected prior dates.

To Reproduce

import dayjs from "dayjs";
const now = dayjs();
const minDays = now.subtract(100, "years")

const date = ref('');

<Datepicker
  v-model="date"
  :min-date="minDate"
  :max-date="now.format('YYYY-MM-DD')"
/>

Expected behavior
Allow to select dates before 01-01-1970 when minDates prop is set to earlier dates.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop & mobile (please complete the following information):
library:
days@1.11.1
@vuepic/vue-datepicker: @3.1.1

Screenshot 2022-04-26 at 13 52 52
Screenshot 2022-04-26 at 13 40 00

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions