fix: don't reset flatpickr date
This commit is contained in:
parent
7cd89b7bf1
commit
4ac7d6b9df
1 changed files with 2 additions and 7 deletions
|
@ -115,11 +115,6 @@ function emitChanged() {
|
|||
})
|
||||
}
|
||||
|
||||
function inputChanged() {
|
||||
flatpickrRange.value = ''
|
||||
emitChanged()
|
||||
}
|
||||
|
||||
watch(
|
||||
() => flatpickrRange.value,
|
||||
(newVal: string | null) => {
|
||||
|
@ -139,8 +134,8 @@ watch(
|
|||
emitChanged()
|
||||
},
|
||||
)
|
||||
watch(() => from.value, inputChanged)
|
||||
watch(() => to.value, inputChanged)
|
||||
watch(() => from.value, emitChanged)
|
||||
watch(() => to.value, emitChanged)
|
||||
|
||||
function setDateRange(range: string[] | null) {
|
||||
if (range === null) {
|
||||
|
|
Loading…
Reference in a new issue