material-react-table 1.11.0 → 1.11.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.
@@ -776,7 +776,9 @@ const MRT_ColumnActionMenu = ({ anchorEl, header, setAnchorEl, table, }) => {
776
776
  React.createElement(ListItemIcon, null,
777
777
  React.createElement(FilterListOffIcon, null)),
778
778
  localization.clearFilter)),
779
- React.createElement(MenuItem, { disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, key: 1, onClick: handleFilterByColumn, sx: commonMenuItemStyles },
779
+ React.createElement(MenuItem, { disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, key: 1, onClick: showColumnFilters
780
+ ? handleOpenFilterModeMenu
781
+ : handleFilterByColumn, sx: commonMenuItemStyles },
780
782
  React.createElement(Box, { sx: commonListItemStyles },
781
783
  React.createElement(ListItemIcon, null,
782
784
  React.createElement(FilterListIcon, null)), (_g = localization.filterByColumn) === null || _g === void 0 ? void 0 :
@@ -2440,7 +2442,12 @@ const MRT_TableDetailPanel = ({ parentRowRef, row, rowIndex, table, virtualRow,
2440
2442
  const { getVisibleLeafColumns, getState, options: { layoutMode, muiTableBodyRowProps, muiTableDetailPanelProps, renderDetailPanel, }, } = table;
2441
2443
  const { isLoading } = getState();
2442
2444
  const tableRowProps = muiTableBodyRowProps instanceof Function
2443
- ? muiTableBodyRowProps({ isDetailPanel: true, row, staticRowIndex: rowIndex, table })
2445
+ ? muiTableBodyRowProps({
2446
+ isDetailPanel: true,
2447
+ row,
2448
+ staticRowIndex: rowIndex,
2449
+ table,
2450
+ })
2444
2451
  : muiTableBodyRowProps;
2445
2452
  const tableCellProps = muiTableDetailPanelProps instanceof Function
2446
2453
  ? muiTableDetailPanelProps({ row, table })