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
OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
π 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