Hi there, Today I raised https://github.com/elm-lang/virtual-dom/issues/37 Given there's no consensus on whether it's a bug, I'm bringing the discussion here.
The reason why I think it's a bug is that the second time the view function runs it generates a ticked checkbox, although nowhere in the view function is there any indication that a ticked checkbox should be generated. The alternative view is that the checkbox that's been clicked on has only been mutated with new data. That's why it remains ticked. You need to use Html.Keyed to tell elm that it is an entirely new checkbox. I must say I'm not convinced why the view function should generate Html that depends on the previous state of the model. Thanks for any insight. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.