[Bug] DateOnly not supported on set/get
Describe the bug
Today I was trying to use DateOnly in my form and save the filter so it's available after reload but it does seem that the SetItemAsync breaks silently and the filter model isn't saved in the localStorage
To Reproduce Steps to reproduce the behavior:
- Setup a class with a filter property of type DateOnly
- Invoke on
ValueChangedtheSetItemAsynctrying to save the whole filter model - Do a
GetItemAsyncor just look in the localStorage to find no record of the filter
Expected behavior DateOnly working in get and set
Screenshots If applicable, add screenshots to help explain your problem.
Hosting Model (is this issue happening with a certain hosting model?):
- Blazor Hosted WebAssembly
Hi @thepra
Could you provide a link to a repro project? I don't quite understand what you're trying to do from your reproduction steps.
@thepra It looks like this is a feature missing in System.Text.Json (https://github.com/dotnet/runtime/pull/69160) and it will be fixed in .NET 7
Closing as this appears to be resolved in .NET 7