summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-01-14 09:05:22 +0100
committerYorhel <git@yorhel.nl>2020-01-14 09:05:24 +0100
commite8df019fe727d198ca9b3dbda0943e8adce4b2d0 (patch)
treee60c38532c498624386f8a8c8503a11adcdc2b9e
parent8968acaae442c794b4287f0e9ae18d8ccbe6e3d1 (diff)
UList.DateEdit: Consider empty dates valid
https://vndb.org/t13422.1
-rw-r--r--elm/UList/DateEdit.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/UList/DateEdit.elm b/elm/UList/DateEdit.elm
index ff0f408b..d20dbba7 100644
--- a/elm/UList/DateEdit.elm
+++ b/elm/UList/DateEdit.elm
@@ -56,7 +56,7 @@ update msg model =
case msg of
Show -> ({ model | visible = True }, Cmd.none)
Val s b ->
- ({ model | val = s, debnum = model.debnum + 1, valid = b && isDate s }
+ ({ model | val = s, debnum = model.debnum + 1, valid = b && (s == "" || isDate s) }
, Task.perform (\_ -> Save (model.debnum+1)) <| Process.sleep 300)
Save n ->