Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start date is not used if v-model is filed #398

Closed
Tyki opened this issue May 23, 2023 · 1 comment
Closed

Start date is not used if v-model is filed #398

Tyki opened this issue May 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Tyki
Copy link

Tyki commented May 23, 2023

Describe the bug
I'm providing startDate & v-model in a multi-calendar

Lets say we are in may and you are selecting a date in June, you can't go back to may even if the startDate is set to 2023 may

To Reproduce

<Datepicker
    ref="datepicker"
    :model-value="modelValue"
    :enable-time-picker="false"
    :min-date="minRangeDate"
    :auto-apply="autoApply"
    :max-range="DATE_PICKER_MAX_RANGE"
    :min-range="minimumStayDuration"
    :max-date="maxRangeDate"
    :inline="true"
    hide-offset-dates
    keep-action-row
    month-name-format="long"
    :multi-calendars="count" // 13
    prevent-min-max-navigation
    :month-change-on-arrows="false"
    :month-change-on-scroll="false"
    :space-confirm="false"
    :start-date="currentDate()"    // new Date()

Expected behavior
Start at the date provided and not the v-model value since the v-model value is the user selected but not the configuration of the calendar L125-126

Issue probably comes from calendar.ts

@Tyki Tyki added the bug Something isn't working label May 23, 2023
@Jasenkoo
Copy link
Contributor

it is not a bug, it is intended behavior. I'll tag this as a feature

@Jasenkoo Jasenkoo added enhancement New feature or request and removed bug Something isn't working labels May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants