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
However, the workaround (use the value attribute) isn't documented in a way that would have pointed me at the correct behavior. I pieced it together from the changelog and an unrelated GitHub issue.
The text was updated successfully, but these errors were encountered:
irskep
changed the title
FYI: textarea behavior is very funky
FYI: textarea behavior is very funky if you try to put HTML inside it rather than using the 'value' attribute
Apr 23, 2023
These are the delimiters placed inside the html string by the t function to help find the places stuff needs to be bound to in the DOM. Since the <textarea> element looks like an element that takes children, but actually only takes text, the usual way to strip these comments out of the generated DOM don't work I think. This could probably be fixed (or a warning could be introduced) in the fragment function. Of course I've only just begun reading through the code as an outsider 😅
I tried doing this:
As you may already know, it doesn't work:
However, the workaround (use the
value
attribute) isn't documented in a way that would have pointed me at the correct behavior. I pieced it together from the changelog and an unrelated GitHub issue.The text was updated successfully, but these errors were encountered: