Skip to content

Commit

Permalink
Fix primefaces#6557: fix updateViewDate event (primefaces#6559)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekl0w authored May 3, 2024
1 parent 7312fe4 commit c69d65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ export const Calendar = React.memo(
onClearButtonClick(event);
}

if (value !== null) {
if (value && props.onSelect) {
const day = value.getDate();
const month = value.getMonth();
const year = value.getFullYear();
Expand Down

0 comments on commit c69d65e

Please sign in to comment.