fix: don't reset flatpickr date

This commit is contained in:
kolaente 2022-02-06 23:10:35 +01:00
parent 7cd89b7bf1
commit 4ac7d6b9df
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -115,11 +115,6 @@ function emitChanged() {
}) })
} }
function inputChanged() {
flatpickrRange.value = ''
emitChanged()
}
watch( watch(
() => flatpickrRange.value, () => flatpickrRange.value,
(newVal: string | null) => { (newVal: string | null) => {
@ -139,8 +134,8 @@ watch(
emitChanged() emitChanged()
}, },
) )
watch(() => from.value, inputChanged) watch(() => from.value, emitChanged)
watch(() => to.value, inputChanged) watch(() => to.value, emitChanged)
function setDateRange(range: string[] | null) { function setDateRange(range: string[] | null) {
if (range === null) { if (range === null) {