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

Bug with DatePicker when inputting date range #1240

Open
Patrick-Keenan opened this issue Jan 6, 2023 · 0 comments
Open

Bug with DatePicker when inputting date range #1240

Patrick-Keenan opened this issue Jan 6, 2023 · 0 comments

Comments

@Patrick-Keenan
Copy link

Bug fix in an open PR: #1236

While using input elements to update the Date Picker a user can encounter a bug where a valid date range can be rejected and set to a singular day equal to the end date.

When entering a start date with a year less than that of the end date and a MM/dd later in the year than the end date, the input is treated as if it is greater than the end date. See the first video for examples using the v-calendar guide. The bug occurs when 10/17/2019 and 10/18/2019 are entered.

This is caused by the comparison of the dates as strings rather than as date objects. The second video shows the implemented fix has solved the problem.

https://user-images.githubusercontent.com/87655487/211059011-3eeb63d9-32a5-487f-91dc-72c601e373b8.mov
https://user-images.githubusercontent.com/87655487/211059094-506c14d9-2ce8-49a0-bbde-95665c528c33.mov

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

No branches or pull requests

1 participant