-
Notifications
You must be signed in to change notification settings - Fork 2.1k
textarea with asp-for not filled #3964
Comments
Your workaround definitely should not be required. What is the type of <textarea rows="3" class="form-control" asp-for="Description"></textarea> Since we haven't seen this, I'd appreciate a chance to look at your repro project. Could you upload something to a GitHub repo? |
The following is a part of my Model:
I know there is an empty initial value for the Description, but the model was correctly loaded from the database. Edit: I just did some more research and decorated the Description with |
@markusvt what you're describing is quite odd because Could you please post your |
@dougbu can you try to repro this with various scenarios? |
hey, unfortunately i cannot upload the whole repository, but maybe I can describe it..
3: in the "Intranet" project, there are some Areas, espacially the "Caravan" Area with a View "ValueForm"
Maybe I should mention: the 'Tab' and 'Tabs' Tags are TagHelper that generate some HTML for bootstrap Tabs. Maybe there is a Problem with that nesting? |
@markusvt what is the |
@markusvt I remain unable to reproduce this issue with the information provided so far. Any other or corrected information you can provide? Or any smaller project where you've seen this issue? |
I did post just a fraction of the |
@markusvt that's fine. Please send to dougbu at microsoft dot com. |
Had a good exchange w/ @markusvt. We eventually determined the /cc @DamianEdwards and @barrytang, we have had a few issues filed around self-closed but non-empty HTML elements. Anything we can do better to show |
Couldn't find an existing Tooling issue; filed aspnet/Tooling#398. |
I inserted a Textarea and bound it to my model like this:
<textarea rows="3" class="form-control" asp-for="@Model.Description"></textarea>
When I fill the Textarea and save it, the entered data is correctly saved in my Database. But if I open the Form afterwards, the textarea is not filled at all (all other input elements have the correct values)
I played around a bit and found out that
<textarea rows="3" class="form-control" asp-for="@Model.Description">@Model.Description</textarea>
fills it correctly. Maybe there is a bug in the textarea TagHelper?
The text was updated successfully, but these errors were encountered: