mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 16:02:24 +00:00
fix: fix date input issue with initializer
This commit is contained in:
@@ -10,12 +10,13 @@
|
||||
export let dateFormat: string | undefined = 'dd-MM-yyyy'
|
||||
export let disabled: boolean = false
|
||||
|
||||
const defaultDateFormat = 'dd-MM-yyyy'
|
||||
const defaultHtmlDateFormat = 'yyyy-MM-dd'
|
||||
|
||||
let date: string | undefined = computeDate(value)
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
const defaultDateFormat = 'dd-MM-yyyy'
|
||||
const defaultHtmlDateFormat = 'yyyy-MM-dd'
|
||||
function computeDate(value: string | undefined) {
|
||||
if (dateFormat === undefined) {
|
||||
dateFormat = defaultDateFormat
|
||||
|
||||
Reference in New Issue
Block a user