Skip to content

Commit 8f3dde9

Browse files
committed
Fix primefaces#7581: Calendar reset year on Clear button click
1 parent a84236f commit 8f3dde9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/lib/calendar/Calendar.js

+1
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ export const Calendar = React.memo(
553553

554554
updateModel(event, null);
555555
updateInputfield(null);
556+
setCurrentYear(new Date().getFullYear());
556557
hide();
557558

558559
props.onClearButtonClick && props.onClearButtonClick(event);

0 commit comments

Comments
 (0)