Closed littleStudent closed 5 years ago
Note this only happens on Safari.
this relates to elm/virtual-dom/issues/134 and elm/virtual-dom/pull/135
same problem here, the problem found only on input element, textarea is OK. Safari only.
Some core team folks reviewed https://github.com/elm/virtual-dom/pull/135, and they tell me it should fix this. Can do a patch soon.
To avoid confusion in case people hit this old issue:
It has been fixed in virtual-dom v.1.0.1 (https://github.com/elm/virtual-dom/releases/tag/1.0.1) released on Sep 13, 2018.
This is an Ellie for it: https://ellie-app.com/9d3gvnKDT2ra1
This issue is also mentioned in
https://github.com/elm/virtual-dom/issues/107 https://github.com/elm/html/issues/105 https://github.com/elm/html/issues/42 https://github.com/elm/html/issues/62
I have a bound input element. So the state property storing the value is bound back to the dom element. On every keystroke this leads to the cursor jumping to the end of the input.
SSCCCE: https://ellie-app.com/3dWX47DKWwPa1 Browser: Safari (macOS & iOS confirmed)