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

Calendar: Range-Picker in view="month" and view="year" not highlighting selected months/years correctly #5742

Open
brniwllnr opened this issue May 15, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@brniwllnr
Copy link

brniwllnr commented May 15, 2024

Describe the bug

While using the Calendar component with selectionMode="range", I found out:

the selected Month/Year-Range isn't highlighted properly like it works for day-range-selection.

Expected and working fine in view="default":
HereItWorks-WhatIExpect

Unexpected Behaviour in view="month" and view="year"
BuggyNonHighlighted

Reproducer

https://stackblitz.com/edit/w1jm8d-zzrju2?file=src%2FApp.vue

PrimeVue version

3.52.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

No response

Steps to reproduce the behavior

  1. Use Calendar Component
  2. define selectionMode="range" and view="month" or view="year"
  3. Select a range
  4. Notice the highlighted selection

Expected behavior

Every selected month/year should be highlighted as it is in day-view
Screenshot 2024-05-15 at 11 01 23 AM

@brniwllnr brniwllnr added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 15, 2024
@wijzijnweb
Copy link

I think related to this issue (parsing date issue) is that when having for example a Dutch date (Day-Month-Year). When selecting a date, it selects the month (in this case day) of that date. So when I click on the first of may. The calender switches to January.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants