Skip to content

Commit 0e75172

Browse files
committed
Fix datepicker selection
1 parent 0bc5e75 commit 0e75172

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/js/components/DatePicker.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,13 @@
172172
173173
},
174174
onClose: function (selectedDates, dateStr, instance) {
175-
self.$emit('input', dateStr)
176-
self.$emit('close', dateStr)
175+
self.$nextTick(function () { // wait for the datepicker to properly update the UI
176+
self.$emit('input', self.date)
177+
self.$emit('close', self.date)
177178
178-
// see formStore mixin
179-
self.saveIntoStore()
179+
// see formStore mixin
180+
self.saveIntoStore()
181+
})
180182
}
181183
}
182184

0 commit comments

Comments
 (0)