Closed EmpiteLakshitha closed 8 months ago
@EmpiteLakshitha thanks for contacting us.
As part of SSR support all input elements need to generate a form field
name attribute, which they do by formatting the expression passed to the component (the thing inside the @bind
expression).
There is limited support for the expressions that we support (we don't support method calls other than indexers) so there are two things you can do:
Name
attribute explicitly that will be respected and will avoid generating a name.ShouldUseFieldIdentifiers
to false
on the EditContext for the form.This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.
See our Issue Management Policies for more information.
Is there an existing issue for this?
Describe the bug
<InputTextArea class="form-control" @bind-Value="@Request.Model.First().Description" />
When I upgraded .net 6.0 to .net 8.0 this controller gives me the following exception.So I had to add name="Description".
Expected Behavior
These controllers need to work same as using blazor.server.js
Steps To Reproduce
just create a property as
Request.Model.First().Description
and create a EditForm . Then try to load itExceptions (if any)
.NET Version
.net 8
Anything else?
No response