3👍
✅
Have you tried this:
mounted() {
var self = this;
this.flatpicker = flatpickr(self.$refs.dateInput, {
onChange(date) {
self.$emit("dateChanged", date);
}
});
}
Source:stackexchange.com