Skip to content

Commit

Permalink
Fix #7581: Calendar reset year on Clear button click
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jan 8, 2025
1 parent a84236f commit 8f3dde9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ export const Calendar = React.memo(

updateModel(event, null);
updateInputfield(null);
setCurrentYear(new Date().getFullYear());
hide();

props.onClearButtonClick && props.onClearButtonClick(event);
Expand Down

0 comments on commit 8f3dde9

Please sign in to comment.