mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
fix: set time to 0 on date selection
This commit is contained in:
parent
c78237a0d9
commit
aeaddc30a4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user