Datepicker - month view shifts when selecting date ranges across months #3057
Unanswered
Cynthiafan
asked this question in
PrimeVue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I have a datepicker:
When I try to select a date range across months, the first month's view always jumps to match the month of my second selection.
For example, if the initially displayed months are October and November, and I select October 1st as the start date and November 1st as the end date, the displayed months will shift to November and December.
I believe this behavior feels unnatural to users, as they would expect to see both months displayed side by side without needing to click the prev month button again.
Reproduce
https://stackblitz.com/edit/cxivyk?file=src%2FApp.vue
2024-11-19.11.55.54.mov
Suggestion
Would it be possible to add a prop to control and prevent this behavior from occurring?
https://github.com/primefaces/primevue/blob/master/packages/primevue/src/datepicker/DatePicker.vue#L1157-L1158
Beta Was this translation helpful? Give feedback.
All reactions