elm-form icon indicating copy to clipboard operation
elm-form copied to clipboard

Initial textarea value on IE does not work

Open mdenti opened this issue 7 years ago • 3 comments

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.

mdenti avatar Dec 14 '17 15:12 mdenti

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

etaque avatar Dec 19 '17 05:12 etaque

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.

janjelinek avatar Dec 19 '17 09:12 janjelinek

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.

mdenti avatar Dec 19 '17 10:12 mdenti