From b3caece2560aa9e8d5461bfd6fa584ebf98c6ff3 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 13 Mar 2024 18:03:49 +0100 Subject: [PATCH] fix(datepicker): emit date value changes as soon as they happen Flatpickr only returns a change event when the value in the input it's referring to changes. That means it will usually only trigger when the focus is moved out of the input field. This is fine most of the time. However, since we're displaying flatpickr in a popup, the whole html dom instance might get destroyed, before the change event had a chance to fire. In that case, it would not update the date value. To fix this, we're now listening on every change and bubble them up as soon as they happen. Resolves https://community.vikunja.io/t/due-date-confirm-button-not-working/2104 --- .../src/components/input/datepickerInline.vue | 41 ++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/input/datepickerInline.vue b/frontend/src/components/input/datepickerInline.vue index b8a7a7d5b..eca16d99d 100644 --- a/frontend/src/components/input/datepickerInline.vue +++ b/frontend/src/components/input/datepickerInline.vue @@ -63,6 +63,7 @@
@@ -70,7 +71,7 @@