Greetings, I've got some code that type-checks and compiles, but appears to stop working correctly after the first onInput event. The problem seems to center around the event mappings between the updates/views of nested components.
https://bitbucket.org/skew/elm-questionnaire/src The very first onInput event in TextQuestion.view (after initial page load) updates the models correctly, but subsequent onInput events seem to get lost somewhere in the update function hierarchy. Based on a sprinkling of Debug.log functions, the second event appears to get passed to Main.update and Question.update, but not to TextQuestion.update, which seems odd. I have also observed that if I get rid of the Question module, and make Questionnaire a list of TextQuestions instead, everything works as expected. (At that point, it's fairly similar to the list of counters example in the elm guide.) I'd appreciate if anyone can help me understand where my code is incorrect, or validate that I've encountered some sort of bug. Thanks, John -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
