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

Allow change the start date when selecting a previous date #74

Closed
lmsmartins opened this issue Jun 2, 2018 · 1 comment
Closed

Allow change the start date when selecting a previous date #74

lmsmartins opened this issue Jun 2, 2018 · 1 comment
Assignees
Milestone

Comments

@lmsmartins
Copy link
Collaborator

lmsmartins commented Jun 2, 2018

Description

Instead of blocking the dates before the selected start date, could we please allow user to simply change the start date when selecting a date before the current start date? I think it would be a bit more user friendly, since if user gets the start date wrong, the user has to select an end date first before changing the start date. I would like to help you on doing this, do you think this is something that could be done? If yes, could you please point me out in the right direction on how to do this? Which vue files contain the logic that I would have to work on?

[Description of the bug or feature]

Code sample

[ If you are submitting a bug issue, paste your code so I can reproduce it, or a link to a Codepen with it ]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expected to happen]
When a start date is already selected, we shouldn't block the previous dates. If user selects a date previous the current start date, then the start date would be simply changed to that new date the user has selected.

Actual behavior: [What actually happened]
When selecting a start date, all previous dates are blocked, and the user needs to set an end date before changing the start date.

Datepicker Version

2.2.1
[ The version of the datepicker you have installed in your project ]

@matiasperrone matiasperrone added this to the v3.0.0 milestone Jan 27, 2020
@matiasperrone matiasperrone self-assigned this Jan 27, 2020
@matiasperrone matiasperrone changed the title UX improvement - allow user to change the start date when selecting a date before the current start date Allow change the start date when selecting a previous date Aug 27, 2020
@matiasperrone matiasperrone modified the milestones: v3.0.0, v4 Aug 27, 2020
@matiasperrone matiasperrone modified the milestone: v4 Sep 24, 2020
@matiasperrone
Copy link
Collaborator

This is solved in v4.0.0-beta.1. Please try it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants