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: disabledDays prop also disable months #4015

Closed
raerta opened this issue Feb 1, 2023 · 2 comments · Fixed by #4371 or #4389
Closed

Calendar: disabledDays prop also disable months #4015

raerta opened this issue Feb 1, 2023 · 2 comments · Fixed by #4371 or #4389
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@raerta
Copy link

raerta commented Feb 1, 2023

Describe the bug

when i add disabled days to calendar component its also make disable months and years

Reproducer

https://primereact.org/calendar/#disabled

PrimeReact version

^9.0.0-beta.1

React version

18.x

Language

TypeScript

Build / Runtime

Next.js

Browser(s)

Chrome

Steps to reproduce the behavior

  1. click the months button.

Expected behavior

No response

@raerta raerta added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 1, 2023
@BrinkOfMan
Copy link

Bug can be replicated within Prime React's documentation website, in the "Disabled Days" example.
https://www.primefaces.org/primereact-v8/calendar/
image
image
image
image

@melloware
Copy link
Member

Fixed with : #4371

@melloware 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 11, 2023
@melloware melloware added this to the 9.4.0 milestone May 11, 2023
melloware pushed a commit that referenced this issue May 12, 2023
* Fixed #4370, disabledDates broken for month view

* Fix #4015 disabledDays disabled month as well

* Fix #4015 fix code format
@mertsincan mertsincan modified the milestones: 9.4.0, 9.5.0 May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
4 participants