From 8f3dde9fdb4e17d9049ce61afdaa0072b58ad6a4 Mon Sep 17 00:00:00 2001 From: melloware Date: Wed, 8 Jan 2025 08:09:38 -0500 Subject: [PATCH] Fix #7581: Calendar reset year on Clear button click --- components/lib/calendar/Calendar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index 97e3a1fb91..7c4b875af9 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -553,6 +553,7 @@ export const Calendar = React.memo( updateModel(event, null); updateInputfield(null); + setCurrentYear(new Date().getFullYear()); hide(); props.onClearButtonClick && props.onClearButtonClick(event);