Skip to content

Commit

Permalink
Merge pull request #3494 from Kunnu01/fix/sortable
Browse files Browse the repository at this point in the history
[RFR] add check for sortable in shouldUpdate
  • Loading branch information
djhi authored Aug 7, 2019
2 parents 4b05bb6 + 87ed11d commit a178e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ra-ui-materialui/src/list/DatagridHeaderCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ const enhance = compose(
(props, nextProps) =>
props.isSorting !== nextProps.isSorting ||
(nextProps.isSorting &&
props.currentSort.order !== nextProps.currentSort.order)
props.currentSort.order !== nextProps.currentSort.order) ||
(nextProps.isSorting && props.sortable !== nextProps.sortable)
),
translate,
withStyles(styles)
Expand Down

0 comments on commit a178e98

Please sign in to comment.