Describe the bug
When the datepicker is running in range mode with text input enabled, the emitted value can be set to an invalid range (i.e. the start date is after the end date).
To Reproduce
Steps to reproduce the behavior in this Playground:
Focus the input field
Enter an invalid range in form of start and end date, i.e. 2024-04-17 - 2024-04-01
Press Enter key (or click Select button in the overlay)
Confirm that the emitted value contains an invalid range (the start date is after the end date).
Expected behavior
The datepicker should not emit an invalid range, but possibly clear it.
Screenshots
Desktop & mobile (please complete the following information):
Describe the bug When the datepicker is running in range mode with text input enabled, the emitted value can be set to an invalid range (i.e. the start date is after the end date).
To Reproduce Steps to reproduce the behavior in this Playground:
2024-04-17 - 2024-04-01
Enter
key (or clickSelect
button in the overlay)Expected behavior The datepicker should not emit an invalid range, but possibly clear it.
Screenshots
Desktop & mobile (please complete the following information):
Playground:
https://stackblitz.com/edit/vuepic-vue-datepicker-2whhby?file=src%2Fcomponents%2FPlayground.vue