Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted() {
const picker = this.$el.querySelector('[data-date-picker]');
const instance = DatePicker.create(picker, {
onValueUpdate: (selectedDates, dateStr, instance) => {
this.onUpdate();
this.$emit('input', dateStr);
},
});
},
};