Skip to content

Commit

Permalink
Merge pull request #3875 from jblueml/jblueml-fix-details-list-sort
Browse files Browse the repository at this point in the history
Fix for displaying Details List sort arrows on multiple columns
  • Loading branch information
wobba authored Jul 23, 2024
2 parents 5e70dae + 53394a4 commit 507dbe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion search-parts/src/components/DetailsListComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ export class DetailsListComponent extends React.Component<IDetailsListComponentP
isRowHeader: false,
isResizable: column.isResizable === true,
isMultiline: column.isMultiline === true,
isSorted: allowSorting,
// show sort arrow only if the column is sortable and sorting has been applied by a previous click ('user sort' happened)
isSorted: allowSorting && column.valueSorting === this.props.defaultSelectedField,
isSortedDescending: this.props.defaultDirection === SortFieldDirection.Descending,
sortAscendingAriaLabel: 'Sorted A to Z',
sortDescendingAriaLabel: 'Sorted Z to A',
Expand Down

0 comments on commit 507dbe0

Please sign in to comment.