diff --git a/src/components/Controls/Date.vue b/src/components/Controls/Date.vue index e664cf44..a8e8faf9 100644 --- a/src/components/Controls/Date.vue +++ b/src/components/Controls/Date.vue @@ -112,9 +112,11 @@ export default defineComponent({ if (!(target instanceof HTMLInputElement)) { return; } - this.showInput = false; + let value: Date | null = new Date(target.value); + value.setHours(0, 0, 0, 0); + if (Number.isNaN(value.valueOf())) { value = null; }