Skip to content

Commit

Permalink
fixed display of sort arrows on multiple columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jblueml committed Jul 22, 2024
1 parent 5e70dae commit 53394a4
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 53394a4

Please sign in to comment.