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

Fix #3192: Calendar monthpicker fix for disabled dates #3195

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

melloware
Copy link
Member

Defect Fixes

Fix #3192: Calendar monthpicker fix for disabled dates

Scenario:

let minDate = new Date(2022, 7, 2);
let maxDate = new Date(2022, 7, 31);

The issue was testing against the 1st of the month !isSelectable(1, i, currentYear) . this means that it would disable this month in the scenario above. In fact there is no good "day" to use other than 0 and then test for day > 0.

@melloware melloware added the Core Team Issue or pull request has been *opened* by a member of Core Team label Aug 26, 2022
@melloware melloware merged commit 614628f into primefaces:master Aug 26, 2022
@melloware melloware deleted the PR3192 branch August 26, 2022 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team Issue or pull request has been *opened* by a member of Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calendar: monthpicker disabled using min/max
1 participant