You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of a4fcfe8, the function signature for textarea_ is now textarea_ :: [Attribute action] -> MisoString -> View model action, where the second parameter being used for the textarea's value attribute.
This leaves us forced to use a controlled input (passing in this parameter as the value we hold in the component Model), which has the very problematic bug #272 - further repro steps in my comment, but I'll repost the video demo:
Describe the bug
As of a4fcfe8, the function signature for
textarea_is nowtextarea_ :: [Attribute action] -> MisoString -> View model action, where the second parameter being used for the textarea'svalueattribute.Passing in e.g. the empty string
""as parameter causes input to be wiped every keystroke:textarea_new_fn_signature_bug-2026-04-13_17.43.19.webm
This leaves us forced to use a controlled input (passing in this parameter as the value we hold in the component Model), which has the very problematic bug #272 - further repro steps in my comment, but I'll repost the video demo:
textarea_cursor_bug-2026-04-13_16.53.23.webm
Some useful leads on how Elm fixed their equivalent of #272 : elm/virtual-dom#138 (comment)
Other thread with potential fixes and workarounds: elm/html#105 (comment)
To Reproduce
textarea_with the empty string as its second argumenttextarea_with the Model field where you store user input as thetextarea_'s second argumentExpected behavior
AND/OR
Desktop (please complete the following information):
Smartphone (please complete the following information):
Not tested