Calendar:about disabled logic #5581
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
The calendar only supports
disabledDates
anddisabledDays
But year and month have attributes
data-p-disabled
, this value never changed byprops.disabledDates
orprops.disabledDays
monthPickerValues
data-p-disabled
always truehttps://github.com/primefaces/primereact/blob/master/components/lib/calendar/Calendar.js#L3654
yearPickerValues
data-p-disabled
always falsehttps://github.com/primefaces/primereact/blob/master/components/lib/calendar/Calendar.js#L3697
is this an issue or a feature? if it will be fixed, Is it a good choice to accept a new prop like example
Reproducer
https://codesandbox.io/p/sandbox/primereact-test-forked-6y4y7n?file=%2Fsrc%2Findex.js
PrimeReact version
latest
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: