Skip to content

Commit

Permalink
Fix primefaces#3484: Calendar update inputfield if popup is displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Oct 18, 2022
1 parent ebcd82b commit 0a454ae
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 @@ -2489,7 +2489,7 @@ export const Calendar = React.memo(
}, [props.onViewDateChange, props.value]);

useUpdateEffect(() => {
if (previousValue !== props.value && (!viewStateChanged.current || !visible)) {
if (previousValue !== props.value && (!viewStateChanged.current || visible)) {
updateInputfield(props.value);
}
}, [props.value, visible]);
Expand Down

0 comments on commit 0a454ae

Please sign in to comment.