MudBlazor/MudBlazor

MudDataGrid filter for "DateOnly?" or "DateOnly" not working

Ouverte

#10 205 ouverte le 7 nov. 2024

 (9 commentaires) (1 réaction) (1 personne assignée)C# (1 631 forks)batch import
bughas workaroundhelp wanted

Métriques du dépôt

Stars
 (10 394 étoiles)
Métriques de merge PR
 (Merge moyen 6j 6h) (108 PRs mergées en 30 j)

Description

Things to check

  • I have searched the existing issues for this bug
  • To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type

Component

Component name

MudDataGrid

What happened?

Using MudDataGrid with a PropertyColumn for a field of type DateOnly? or not nullable version does not show the correct options for filtering It shows no field for the value and the "Operator" dropdown is empty:

image

Expected behavior

MudDataGrid with PropertyColumn for a field of type DateOnly(?) should show options like with the not nullable DateTime type:

image

Reproduction link

https://try.mudblazor.com/snippet/QaGellEBJEeNtyYp

Reproduction steps

  1. MudDataGrid for a Model with a nullable DateOnly property
  2. Click on the Filter button

Relevant log output

No response

Version (bug)

7.15.0

Version (working)

No response

What browsers are you seeing the problem on?

Chrome

On which operating systems are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

Guide contributeur