microsoft / fast

The adaptive interface system for modern web experiences.
https://www.fast.design
Other
9.25k stars 590 forks source link

fix: Date Selection in FluentCalendar MAUI Blazor hybrid #6766

Closed guillaume-brouillon closed 3 months ago

guillaume-brouillon commented 1 year ago

πŸ› Bug Report

In Maui Blazor Hybrid, when selecting a date using FluentCalendar, the app crashes with error : Year, Month, and Day parameters describe an un-representable DateTime. at System.DateTime..ctor(Int32 year, Int32 month, Int32 day) at Microsoft.Fast.Components.FluentUI.FluentCalendar.OnDateSelected(CalendarSelectEventArgs args) in /_/src/Microsoft.Fast.Components.FluentUI/Components/Calendar/FluentCalendar.razor.cs:line 161 at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Everything is working fine with a pure blazor project.

πŸ’» Repro or Code Sample

Create a MAUI Blazor app. Configure it to use Fluent UI. Add a FluentCalendar. Select a date

πŸ€” Expected Behavior

Select the date

😯 Current Behavior

App crashes

🌍 Your Environment

Widows 11, Maui Blazor

vnbaaij commented 1 year ago

Please report Blazor specific issues at https://github.com /microsoft /fluentui-blazor

Ps we are working on new date and time components for the next version. Will test them on MAUI for sure.