support clear on text input for date input

This commit is contained in:
Ruben Fiszel
2023-10-05 23:43:25 +02:00
parent f4957d66b9
commit 10994f2703
@@ -53,7 +53,13 @@
}
}
$: value && outputs?.result.set(formatDate(value, resolvedConfig.outputFormat))
$: {
if (value) {
outputs?.result.set(formatDate(value, resolvedConfig.outputFormat))
} else {
outputs?.result.set(undefined)
}
}
function handleDefault(defaultValue: string | undefined) {
value = defaultValue