Skip to content

Commit df47c4e

Browse files
committed
clear sort state only for column that has sorting
1 parent 2bf04de commit df47c4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/TableView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ public void ClearAllSorting()
786786
DeselectAll();
787787
SortDescriptions.Clear();
788788

789-
foreach (var column in Columns)
789+
foreach (var column in Columns.Where(c => c.SortDirection is not null))
790790
{
791791
if (column is not null)
792792
{

0 commit comments

Comments
 (0)