elm-form
elm-form copied to clipboard
Initial textarea value on IE does not work
I'm trying to give an initial value to a textarea, but it won't show up in Internet Explorer (I'm using document mode Edge). It works without problem on Firefox and Chrome. Am I making a mistake somewhere? Is there a solution or work-around for it?
See a demo on Ellie.
Hello,
Sorry, I don't have any Windows env under hand. I would suggest on #elm-form channel in Elm's Slack if anybody can help you this: https://elmlang.slack.com/messages/C6P6326JU/
Cheers
I suggest update elm-form by adding Html.text state.value as child of Html.textarea here https://github.com/etaque/elm-form/blob/master/src/Form/Input.elm#L72
See more in my answer in slack group.
After some discussion in slack with @janjelinek and a bit of testing, it seems like adding Html.text state.value as child of Html.textarea will behave the same way as the defaultValue in Chrome, but will behave the same way as the value attribute in IE (which comes with this issue) and possibly in Firefox too, although I could not fully reproduce it there.