choojs / choo

:steam_locomotive::train: - sturdy 4kb frontend framework
https://choo.io/
MIT License
6.78k stars 595 forks source link

Textarea trims value #632

Closed alanshaw closed 6 years ago

alanshaw commented 6 years ago

Expected behavior

const text = "foo "
html`<textarea>${text}</textarea>`

output:

<textarea>foo </textarea>

Actual behavior

<textarea>foo</textarea>
goto-bus-stop commented 6 years ago

Probably need to add an exception for textareas to the whitespace handling introduced in bel by this PR: https://github.com/shama/bel/pull/81

goto-bus-stop commented 6 years ago

fixed by https://github.com/shama/bel/pull/108, released in bel@5.1.7. do npm update to get it. thanks!