WIP Обработана ошибка при очистке в inputDate

This commit is contained in:
Daria Golova
2022-12-27 14:43:15 +03:00
parent 449cc6ebbe
commit 84ddeb74a1
2 changed files with 9 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ export default {
return this.modelValue?.toISOString().split("T")[0];
},
set(value) {
this.$emit("update:modelValue", new Date(value));
this.$emit("update:modelValue", value ? new Date(value) : null);
},
},
},