From b20c17d8c16a46382db78bf6d0ae9a9978ed12e6 Mon Sep 17 00:00:00 2001 From: Miguel Ryan Bancolita Date: Thu, 29 Jun 2023 20:06:36 +0800 Subject: [PATCH] [@mantine/dates] DateInput: clear input value on clearButton click --- src/mantine-dates/src/components/DateInput/DateInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mantine-dates/src/components/DateInput/DateInput.tsx b/src/mantine-dates/src/components/DateInput/DateInput.tsx index 05048f853a..b8ab85e60e 100644 --- a/src/mantine-dates/src/components/DateInput/DateInput.tsx +++ b/src/mantine-dates/src/components/DateInput/DateInput.tsx @@ -220,6 +220,7 @@ export const DateInput = forwardRef((props, re onClick={() => { setValue(null); !controlled && setInputValue(''); + setDropdownOpened(false); }} unstyled={unstyled} {...clearButtonProps}