From 602d15985b032ac07cc2eded45436a105fd5317f Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 18 Nov 2023 16:40:20 +0100 Subject: [PATCH] fix(filter): don't immediately re-trigger prepareFilter --- src/components/date/datepickerWithRange.vue | 1 + src/components/project/partials/filters.vue | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index c04922537..f6a8e1802 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -117,6 +117,7 @@ const to = ref('') watch( () => props.modelValue, newValue => { + console.log('got new values via model', {...newValue}) from.value = newValue.dateFrom to.value = newValue.dateTo // Only set the date back to flatpickr when it's an actual date. diff --git a/src/components/project/partials/filters.vue b/src/components/project/partials/filters.vue index 64b869895..fc109cd7c 100644 --- a/src/components/project/partials/filters.vue +++ b/src/components/project/partials/filters.vue @@ -179,6 +179,7 @@ export const ALPHABETICAL_SORT = 'title'