diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index 6caa24a13..8dae23314 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -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) {