Redraw Date Picker when settings change
This commit is contained in:
parent
2941ba5ade
commit
16c8a6a3a6
|
@ -51,6 +51,12 @@
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: redrawOptions = {
|
||||||
|
timeOnly,
|
||||||
|
enableTime,
|
||||||
|
time24hr,
|
||||||
|
}
|
||||||
|
|
||||||
const handleChange = event => {
|
const handleChange = event => {
|
||||||
const [dates] = event.detail
|
const [dates] = event.detail
|
||||||
const noTimezone = enableTime && !timeOnly && ignoreTimezones
|
const noTimezone = enableTime && !timeOnly && ignoreTimezones
|
||||||
|
@ -144,7 +150,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#key timeOnly}
|
{#key redrawOptions}
|
||||||
<Flatpickr
|
<Flatpickr
|
||||||
bind:flatpickr
|
bind:flatpickr
|
||||||
value={parseDate(value)}
|
value={parseDate(value)}
|
||||||
|
|
Loading…
Reference in New Issue