You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with the Calendar component when using the properties view='month', and selectionMode='range'. When selecting months in the following sequence - selecting January and then a later month like May - the styling appears correctly. The problem arises when I first select a later month and then an earlier one, such as selecting May and then February. Although the range is successfully built, the styling is not applied correctly, and it appears as if the user has selected only one month instead of two.
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
May 22, 2024
melloware
changed the title
Incorrect styling when selecting month range in PrimeReact Calendar Component
Calendar: Incorrect styling when selecting month range
May 22, 2024
melloware
changed the title
Calendar: Incorrect styling when selecting month range
Calendar: Incorrect styling when selecting month/year range
Jun 14, 2024
Describe the bug
There is an issue with the Calendar component when using the properties view='month', and selectionMode='range'. When selecting months in the following sequence - selecting January and then a later month like May - the styling appears correctly. The problem arises when I first select a later month and then an earlier one, such as selecting May and then February. Although the range is successfully built, the styling is not applied correctly, and it appears as if the user has selected only one month instead of two.
![Screenshot 2024-05-17 at 17 01 20](https://private-user-images.githubusercontent.com/107926538/332809387-c7b60d75-9158-4e56-8f87-0c03ed65fb1d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODk3MjgsIm5iZiI6MTczOTY4OTQyOCwicGF0aCI6Ii8xMDc5MjY1MzgvMzMyODA5Mzg3LWM3YjYwZDc1LTkxNTgtNGU1Ni04Zjg3LTBjMDNlZDY1ZmIxZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwNzAzNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ZTYzZjE4NTAxYTZiYTU1YjM5M2ZmMzhlMWE4MjFhOGZmNjFjNDkxMThhODBlMDUzYWQ0ZGJhYmI2NTI2NzA5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.j7ZKcfK5c_jr1Ik73sC_tRBsRZx1-hLFockGxu1i_JE)
![Screenshot 2024-05-17 at 17 01 09](https://private-user-images.githubusercontent.com/107926538/332809394-77137346-b3bb-41d8-bb7a-54919648c5aa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODk3MjgsIm5iZiI6MTczOTY4OTQyOCwicGF0aCI6Ii8xMDc5MjY1MzgvMzMyODA5Mzk0LTc3MTM3MzQ2LWIzYmItNDFkOC1iYjdhLTU0OTE5NjQ4YzVhYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwNzAzNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZDlmNmQ0ODYzM2RiOTJiZTZiYWQyM2FkNTY3NTQxMTU2YTlkMWFkNDJjZGExYTFhYTYyOGM1YTVmM2ZmODE0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.iRU_pkU4oJRgsShL1V_JmyJNJmyNGUVE6W9YyzAs_kw)
Reproducer
https://stackblitz.com/edit/hyhoxe?file=src%2FApp.jsx
PrimeReact version
10.5.0
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Only February is highlighted and May is not focused. The range is correctly filled.
Expected behavior
Second month (May 2024) should be focused as well.
The text was updated successfully, but these errors were encountered: