I saw your post on the Elm Discourse and had a little play with the Ellie you linked. Great work!
I did however find a bug in the example when using Field.withMin with date fields. See line 319 from the example Field.withMin today ("Must be after " ++ Date.toIsoString today). When I input a date that is after today I am shown an error. Seems like the same happens when using withMax and inputting a date before the passed date.
From my quick investigation it seems like the problem comes from the order of comparing raw and valuehere
I saw your post on the Elm Discourse and had a little play with the Ellie you linked. Great work!
I did however find a bug in the example when using
Field.withMin
with date fields. See line 319 from the exampleField.withMin today ("Must be after " ++ Date.toIsoString today)
. When I input a date that is after today I am shown an error. Seems like the same happens when using withMax and inputting a date before the passed date.From my quick investigation it seems like the problem comes from the order of comparing
raw
andvalue
hereI may be wrong but I think this block should be: