From 82d0b8d46738fa8f7103aede7fe9600a0b4995cb Mon Sep 17 00:00:00 2001 From: Dmytro Gaponenko Date: Mon, 3 Jul 2023 11:56:41 +0200 Subject: [PATCH] fix: changing chosen date when change month --- src/components/DatePicker/DatePickerPopover.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/DatePicker/DatePickerPopover.jsx b/src/components/DatePicker/DatePickerPopover.jsx index 00ecf55b..d934287f 100644 --- a/src/components/DatePicker/DatePickerPopover.jsx +++ b/src/components/DatePicker/DatePickerPopover.jsx @@ -29,6 +29,7 @@ export const DatePickerPopover = ({ const handleChange = (date, options, event) => { if (variant === "single") { onChange?.(date, options, event); + setOriginalValue(date); toggleVisibility(); } else { onChange?.(date, originalValue, options, event);