you can simply fix that by wrapping the output of the map in div. e.g. div [] [ Html.App.map Button (buttonView model) ]
On Thu, May 19, 2016 at 11:05 AM, Eelco Hoekema <[email protected]> wrote: > I had a similar problem, reverted back to 0.16 because of it. And i also > had a nested nest. > > eelco > > On Thu, May 19, 2016 at 8:37 AM, debois <[email protected]> wrote: > >> Hi Richard, >> >> I experienced similar thing, and in my case, it seems to have to do with >> nested use of `Html.App.map`: https://github.com/elm-lang/html/issues/16. >> >> Cheers, >> >> Søren >> >> On Saturday, May 14, 2016 at 9:24:06 PM UTC+2, Richard Osafo wrote: >>> >>> Hi Martin, >>> After much trial and error, I got it to work by embedding my view in >>> another div. Still not sure what the problem was though but at least I can >>> go on. >>> >>> This fails >>> >>> let >>> viewFn = >>> \ctx m -> component.view ctx m -- or just component.view >>> >>> >>> This works >>> >>> let >>> viewFn = >>> \ctx m -> div [] [ component.view ctx m ] >>> >>> >>> regards, >>> Richard. >>> >> -- >> 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. >> > > -- > 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. > -- There is NO FATE, we are the creators. blog: http://damoc.ro/ -- 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.
