material-react-table 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1956,7 +1956,11 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
1956
1956
  transform: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) !== 'right'
1957
1957
  ? 'translateX(-0.5ch)'
1958
1958
  : undefined,
1959
- }, IconComponent: ArrowDownwardIcon })));
1959
+ }, IconComponent: ArrowDownwardIcon, onClick: (e) => {
1960
+ var _a;
1961
+ e.stopPropagation();
1962
+ (_a = header.column.getToggleSortingHandler()) === null || _a === void 0 ? void 0 : _a(e);
1963
+ } })));
1960
1964
  };
1961
1965
 
1962
1966
  const MRT_TableHeadCell = ({ header, table }) => {