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
With Static SSR and [SupplyParameterFromForm], the value of the parameter from constructor is lost and the parameter is assigned null when on "empty" form data (eg. unchecked InputCheckbox).
When you click Submit, you get InvalidOperationException: EditForm requires either a Model parameter, or an EditContext parameter, please provide one of these.
Expected Behavior
The example above should end up with a _model parameter assigned to a InputModel instance with the RememberMe property to false.
Steps To Reproduce
See the sample above.
The POSTed form data is
_handler=my-form&__RequestVerificationToken=...
Exceptions (if any)
No response
.NET Version
9.0.2
Anything else?
If I replace the constructor initialization with OnInitialized initialization, the property value is incorrect (true with the repro below):
Is there an existing issue for this?
Describe the bug
With Static SSR and [SupplyParameterFromForm], the value of the parameter from constructor is lost and the parameter is assigned
null
when on "empty" form data (eg. unchecked InputCheckbox).When you click Submit, you get
InvalidOperationException: EditForm requires either a Model parameter, or an EditContext parameter, please provide one of these.
Expected Behavior
The example above should end up with a
_model
parameter assigned to aInputModel
instance with theRememberMe
property tofalse
.Steps To Reproduce
See the sample above.
The POSTed form data is
Exceptions (if any)
No response
.NET Version
9.0.2
Anything else?
If I replace the constructor initialization with
OnInitialized
initialization, the property value is incorrect (true
with the repro below):The text was updated successfully, but these errors were encountered: