Redraw Date Picker when settings change

This commit is contained in:
Mel O'Hagan 2022-08-11 11:13:50 +01:00
parent 2941ba5ade
commit 16c8a6a3a6
1 changed files with 7 additions and 1 deletions

View File

@ -51,6 +51,12 @@
},
}
$: redrawOptions = {
timeOnly,
enableTime,
time24hr,
}
const handleChange = event => {
const [dates] = event.detail
const noTimezone = enableTime && !timeOnly && ignoreTimezones
@ -144,7 +150,7 @@
}
</script>
{#key timeOnly}
{#key redrawOptions}
<Flatpickr
bind:flatpickr
value={parseDate(value)}