-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issueStatus: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one
Milestone
Description
Probably this is not a bug but just an implementation that has not been completed yet. Anyway, the issues are as follows:
- In Razor Views model properties of type
DateOnly
andTymeOnly
do not render automatically as input type date and time respectively but as input type text. They do render properly only if properties are decorated withDataType
attributes that specify respectivelyDate
andTime
types. - In Razor Views and Pages, properties of type
DateOnly
andTymeOnly
do not conform to theViewContext.Html5DateRenderingMode
setting but always render according to the current Culture. - In Blazor components
<input @bind-value = "MyTime"
> and <input @bind-value = "MyDate"> complaintMyTyme
andMyDate
must beDateTime
if they are respectivelyTimeOnly
andDateOnly
types.
Reproducing the error is trivial and can be done immediately in the Asp.net Core and Blazor default project templates.
- ASP.NET Core version: 6 preview 4
- Include the output of
dotnet --info
: Microsoft.NETCore.App 6.0.0-preview.4.21253.7 - The IDE (VS / VS Code/ VS4Mac) you're running on, and its version: VS
mattjohnsonpint
Metadata
Metadata
Assignees
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issueStatus: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one