Skip to content

Reselect startDate in the past with range picker #1114

@Saltibarsciai

Description

@Saltibarsciai

Is your feature request related to a problem? Please describe.
problem is old - stackoverflow https://stackoverflow.com/questions/75351327/vue-datepicker-range-in-back
The problem is that range picker tries to select dates in the past, when expectation is to allow selection only in future. Also when date in the past is clicked - startDate should be reselected and endDate to be selected

Describe the solution you'd like
after selecting startDate, dragging mouse in the past won't activate cells/turn them to be in-range, because then cells have a new color. Also when clicking day before selected startDate, restart the selection making new day in the past as startDate and endDate to be selected

Describe alternatives you've considered
Tried to play around with fixedStart, but it won't make dates in-range have different background color while hovering/choosing what to select

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions