Merge branch 'fix/default-today-in-datepicker-overrides'
All checks were successful
Deploy / build-and-deploy (push) Successful in 2m24s
All checks were successful
Deploy / build-and-deploy (push) Successful in 2m24s
This commit is contained in:
commit
ad0989510a
1 changed files with 3 additions and 1 deletions
|
|
@ -45,7 +45,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDefaultToday(input) {
|
function setDefaultToday(input) {
|
||||||
input.value = todayISO();
|
if (!input.value) {
|
||||||
|
input.value = todayISO();
|
||||||
|
}
|
||||||
const form = input.closest("form");
|
const form = input.closest("form");
|
||||||
if (form) {
|
if (form) {
|
||||||
form.addEventListener("reset", function () {
|
form.addEventListener("reset", function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue