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 #3515/#3516: Calendar fix controlled value change #3517

Conversation

melloware
Copy link
Member

@melloware melloware commented Oct 28, 2022

Defect Fixes

Fix #3515: Calendar fix controlled value change

Fix #3516: Inconsistent behaviour around viewDate and changed value.

@melloware
Copy link
Member Author

I am not sure why previously it cared whether the popup was visible or not?

@melloware melloware force-pushed the 3515-calendar-value-does-not-update-on-external-change branch from 7c3f611 to 20fd559 Compare October 28, 2022 15:01
@melloware melloware changed the title Fix #3515: Calendar fix controlled value change Fix #3515/#3516: Calendar fix controlled value change Oct 28, 2022
@melloware melloware merged commit cc6d531 into primefaces:master Oct 28, 2022
@melloware melloware deleted the 3515-calendar-value-does-not-update-on-external-change branch October 28, 2022 17:33
if (!visible && newDate) {
validateDate(newDate);
setViewDateState(newDate);
setCurrentMonth(newDate.getMonth());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@melloware When the selectionMode property of the Calendar component is range the value of the newDate variable is an array and the function getMonth() is not available.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is already fixed check master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants