I thought about posting this as an issue for the elm/file package, but I am not sure if it is right there. So I’ll just write this here and hope you have some feedback for me and/or this issue.
The first tries to decode the
files field as a list, the second one as a single file element. In the broken version the Msg is just not triggered. Our somewhat new elm dev was pretty frustrated with this behaviour. What do you think, is this something that could/should be fixed? Could we make elm not just silently swallow the error? Or write it in the docs? The mean thing is, the docs for on say:
When an event occurs, the decoder tries to turn the event object into an Elm value. If successful, the value is routed to your
But no mention of the error case.
Thanks for your input!