From 4496530fedf92f7f0be07cf22936b9427401b332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Fern=C3=A1ndez?= Date: Tue, 25 Jun 2024 06:02:27 +0100 Subject: [PATCH] fix(ui): allow input month with keystrokes (#5785) Signed-off-by: p-fernandez --- packages/ui/src/components/calendar/DateInputBox.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ui/src/components/calendar/DateInputBox.svelte b/packages/ui/src/components/calendar/DateInputBox.svelte index a3680cdc87..18e67e402a 100644 --- a/packages/ui/src/components/calendar/DateInputBox.svelte +++ b/packages/ui/src/components/calendar/DateInputBox.svelte @@ -118,6 +118,7 @@ if (edit.value === -1 && full && i > 2) result = true if (edit.value === -1 && !full && i < 3) result = true if (i === 0 && edit.value === 0) result = true + if (i === 1 && edit.value === 0) result = true if (i === 2 && (edit.value < 1970 || edit.value > 3000)) result = true }) return result