diff --git a/frontend/src/lib/components/DateInput.svelte b/frontend/src/lib/components/DateInput.svelte index f230be25b2..d634a149ae 100644 --- a/frontend/src/lib/components/DateInput.svelte +++ b/frontend/src/lib/components/DateInput.svelte @@ -1,41 +1,49 @@ -
- +
+ { - if (date) { - updateValue(date) + onchange={(e) => { + const newDate = e.currentTarget.value + if (newDate) { + updateValue(newDate) } else { value = null dispatch('change', value)