On Sep 24, 2016, at 2:18 AM, Peter Damoc <pda...@gmail.com> wrote: > >> On Sat, Sep 24, 2016 at 12:20 AM, Richard Feldman >> <richard.t.feld...@gmail.com> wrote: >> Got it. >> >> Fair point, although to me this suggests that WCs are best suited for state >> you don't mind losing, e.g. for a ripple effect. :) > > Some of the components might have a complex user interaction that also is > important. > For example, the date picker allows the user to switch to a different month > in the process of selecting the date. > If due to some other UI update the date picker is reverted to the default > date without reason, this ends up being a bad experience for the user. > > But this is an implementation detail. Maybe it can be solved at the > implementation level somehow through some JS trickery.
Elm presumably already has this problem for text entry fields which when focused have a selection range or insertion point. One just gets lucky much of the time because the view tree doesn't change. But one person's luck is another person's hours of hunting down a hard to reproduce bug. Mark -- 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.