From 3ee4926361f428441ee3d54d06f6419d86fba091 Mon Sep 17 00:00:00 2001 From: Batuhan Tomo Date: Fri, 3 May 2024 14:29:08 +0300 Subject: [PATCH] Fix #6557: fix updateViewDate event --- components/lib/calendar/Calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index d4c8b630c0..56fbc83638 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -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();