DEV Community

Discussion on: Elm Journey - Avoiding HTML inputs

Collapse
 
wking profile image
William King

Also, feel free to jump into the Elm Slack when you run into these kind of problems! There are a lot of people and teams in the community with Elm in production that have answers for all the problems you face and they are always happy to help! elmlang.herokuapp.com/

Collapse
 
kspeakman profile image
Kasey Speakman

Thanks for the comments.

I have already researched the mentioned issues with text input. You can find them recorded here:

Unreliable value due to requestAnimationFrame #107
Html.input defaultValue does not update properly when switching pages #152

The second one is why defaultValue does not work when there are multiples in a dynamic list. I tried Html.Keyed.node, but I cannot remember the outcome of that test, and it is more of a pain to use.

Collapse
 
wking profile image
William King

Yeah dynamic lists with Virtual DOM is always a fun problem! Html.Keyed is a great solution but yeah it is more code and more to keep track of. 👌