mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 16:03:47 +00:00
support clear on text input for date input
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user