material-react-table 1.3.15 → 1.3.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -728,7 +728,7 @@ const MRT_ShowHideColumnsMenuItems = ({ allColumns, hoveredColumn, setHoveredCol
728
728
  };
729
729
 
730
730
  const MRT_ShowHideColumnsMenu = ({ anchorEl, isSubMenu, setAnchorEl, table, }) => {
731
- const { getAllColumns, getAllLeafColumns, getCenterLeafColumns, getIsAllColumnsVisible, getIsSomeColumnsPinned, getIsSomeColumnsVisible, getLeftLeafColumns, getRightLeafColumns, getState, toggleAllColumnsVisible, options: { localization, enablePinning, enableColumnOrdering, enableHiding, }, } = table;
731
+ const { getAllColumns, getAllLeafColumns, getCenterLeafColumns, getIsAllColumnsVisible, getIsSomeColumnsPinned, getIsSomeColumnsVisible, getLeftLeafColumns, getRightLeafColumns, getState, toggleAllColumnsVisible, options: { enableColumnOrdering, enableHiding, enablePinning, localization, columns, }, } = table;
732
732
  const { density, columnOrder, columnPinning } = getState();
733
733
  const hideAllColumns = () => {
734
734
  getAllLeafColumns()
@@ -747,6 +747,7 @@ const MRT_ShowHideColumnsMenu = ({ anchorEl, isSubMenu, setAnchorEl, table, }) =
747
747
  }
748
748
  return columns;
749
749
  }, [
750
+ columns,
750
751
  columnOrder,
751
752
  columnPinning,
752
753
  getAllColumns(),