fix validation on unselect date

This commit is contained in:
les
2021-04-21 11:42:03 +02:00
parent 3bb73cd757
commit ddd0e6d144

View File

@@ -222,6 +222,10 @@ export default {
this.$emit('input', { ...this.value, dueHour: false })
}
} else if (what === 'date') {
if (value === null) {
this.$emit('input', { ...this.value, from: null, fromHour: false })
return
}
if (this.value.multidate) {
let from = value.start
let due = value.end