Most VDOM libs have a hack in place to prevent the value of an input/textarea from being written again if it didn't change, as it resets the cursor in some browsers. Could be that.
Example in snabbdom: https://github.com/snabbdom/snabbdom/blob/master/src/modules/props.ts#L21 On Saturday, December 3, 2016 at 8:08:38 PM UTC+1, Esteban Manchado Velázquez wrote: > > Hi, > > I have a strange, intermittent issue with textareas. It mostly seems to > happen in mobile browsers. The issue is that, when editing text *in the > middle* of a textarea, as opposed to adding to the end, sometimes the > cursor jumps to the end. I assume it's some kind of re-creation of the > textarea DOM element. > > I have made a simple application with a textarea but that DOES seem to > work fine... so I'm wondering if the problem happens because my application > is bigger, and I have "subapplications" that use App.map for messages and > so on. > > Has anyone seen that before? Is it something stupid I'm doing, a bug in > Elm, ...? I can make the full source code available if that'll help. > -- 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.
