From cc70e271d2c676604f3c353c895398dd635fbb7f Mon Sep 17 00:00:00 2001 From: estifanos Date: Wed, 5 Aug 2026 12:35:37 +0000 Subject: [PATCH] fix(AmharicDatePicker): conditionally close date picker based on time selection --- libs/ui/src/lib/input/AmharicDatePicker.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ui/src/lib/input/AmharicDatePicker.tsx b/libs/ui/src/lib/input/AmharicDatePicker.tsx index 70a0a70c7..d9d256eb0 100644 --- a/libs/ui/src/lib/input/AmharicDatePicker.tsx +++ b/libs/ui/src/lib/input/AmharicDatePicker.tsx @@ -279,7 +279,7 @@ export function AmharicDatePicker({ formatters={ETH_FORMATTERS} onSelect={(date: Date | undefined) => { onChange?.(date ? formatWireValue(mergeDateTime(selected, date), dateFormat, withTime) : ''); - close(); + if (!withTime) close(); }} /> ) : ( @@ -292,7 +292,7 @@ export function AmharicDatePicker({ captionLayout="dropdown" onSelect={(date: Date | undefined) => { onChange?.(date ? formatWireValue(mergeDateTime(selected, date), dateFormat, withTime) : ''); - close(); + if (!withTime) close(); }} /> )}