From 0a454ae6cbeeb4e83f2ada7beef449795e235a2d Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 18 Oct 2022 10:38:52 -0400 Subject: [PATCH] Fix #3484: Calendar update inputfield if popup is displayed --- 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 74b2324395..fcd478f1bb 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -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]);