From c114218daee07fc3eee17b4330bc580ac0da6ba6 Mon Sep 17 00:00:00 2001 From: Mukul Bansal Date: Mon, 11 Nov 2024 11:50:22 +0530 Subject: [PATCH] fix: invalid date message issue affects: @medly-components/core, @medly-components/forms --- packages/core/src/components/DatePicker/DatePickerTextField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/DatePicker/DatePickerTextField.tsx b/packages/core/src/components/DatePicker/DatePickerTextField.tsx index 35e74c026..96136979f 100644 --- a/packages/core/src/components/DatePicker/DatePickerTextField.tsx +++ b/packages/core/src/components/DatePicker/DatePickerTextField.tsx @@ -62,7 +62,7 @@ export const DatePickerTextField: FC< } else if (!isErrorPresent && !isCalendarOpen) { setTextValue(''); } - }, [date, isCalendarOpen, isErrorPresent, displayFormat]); + }, [date, isErrorPresent, displayFormat]); const onTextChange = useCallback( (event: React.ChangeEvent) => { const inputValue = event.target.value || '',