You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the SortMode is initially Multiple, the definitions are cleared if the mode is set to Single.
I dont know if the .Clear() makes sense at all. But it should be NOT cleared if the sort mode is set initially.
Expected behavior
Given SortDefinitions should be work in both SortModes
Do not clear SortDefinitions initially.
Bug type
Component
Component name
MudDataGrid
What happened?
Have a look at the reproduction link.
SortDefinitions
-parameter.SortMode
-parameter isSortMode.Multiple
.SortMode.Single
, the initial definitions are cleared.The bug is probably located in:
MudDataGrid.razor.cs
SetParametersAsync
Because the
SortMode
is initiallyMultiple
, the definitions are cleared if the mode is set toSingle
.I dont know if the .Clear() makes sense at all. But it should be NOT cleared if the sort mode is set initially.
Expected behavior
Given
SortDefinitions
should be work in bothSortModes
Do not clear
SortDefinitions
initially.Reproduction link
https://try.mudblazor.com/snippet/QYwIEJcYRvsikHZP
Reproduction steps
On MudDataGrid
SortDefinitions
SortMode
toSingle
Relevant log output
No response
Version (bug)
6.19.1
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
Code of Conduct
The text was updated successfully, but these errors were encountered: