diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index 058c46c1..7808d442 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -90,8 +90,8 @@ const to = ref('') function emitChanged() { emit('dateChanged', { - dateFrom: from.value, - dateTo: to.value, + dateFrom: from.value === '' ? null : from.value, + dateTo: to.value === '' ? null : to.value, }) }