dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.59k stars 10.06k forks source link

Blazor InputDate does not work properly #55987

Open garrettlondon1 opened 6 months ago

garrettlondon1 commented 6 months ago

Is there an existing issue for this?

Describe the bug

Blazor InputDate and date picker does not work properly in InteractiveServer mode when editing part of the date. It works fine in static render mode.

See attached videos for comparison between native html and interactiveserver input date

Expected Behavior

Input date should behave as normal in InteractiveServer render mode according to the HTML specification

Steps To Reproduce

Use Input date in an interactive server component and try changing the date after selection

Exceptions (if any)

No response

.NET Version

8.0.4

Anything else?

No response

garrettlondon1 commented 6 months ago

This is the native date picker

https://github.com/dotnet/aspnetcore/assets/3959577/dff71fe1-e3a7-418f-8d86-95f9e05ad8ff

garrettlondon1 commented 6 months ago

This is Interactive Server

https://github.com/dotnet/aspnetcore/assets/3959577/3108c205-3562-4043-8adf-c4f57cc93853

javiercn commented 6 months ago

@garrettlondon1 thanks for contacting us.

Your suggestion makes sense, however I know this has been a problematic area in the past, so I think we need to take a good look at this and make sure that we are happy with the change. At the very least, we need to make sure we have proper E2E test coverage.

/cc: @SteveSandersonMS