Unable to define an optional DateOnly field in blazor EditForm using InputDate component #52195
Open
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-model-binding
Pillar: Technical Debt
Priority:1
Work that is critical for the release, but we could probably ship without
Milestone
Is there an existing issue for this?
Describe the bug
I am trying to bind a
InputDate
component to a nullableDateOnly
property. When I click on the submit button, I see a validation messageThe value '' is not valid for 'Date'
Expected Behavior
Form should be submitted without any validation errors.
Steps To Reproduce
Counter
link on the leftClick me
buttonExceptions (if any)
None
.NET Version
8.0.100
Anything else?
This only happens when not using any of the interactive modes. The form post sends empty string for the date field that cannot be parsed to a valid date on the server side.
The text was updated successfully, but these errors were encountered: