Skip to content

Releases: KevinVandy/material-react-table

v2.10.0

31 Jan 07:14

Choose a tag to compare

What's Changed

  • Added automatic column order state recalculation for dynamic columns and dynamic MRT display columns being enabled/disabled
    • Fixed bugs where enabling a feature like row selection conditionally would add columns to the end of the table when columnOrder state was not manually managed
    • Fixed bugs where the show/hide columns menu would be empty when loading in dynamic column definitions without providing the columnOrder state manually
  • Added new Cell Actions features which will show a MUI context menu when a cell is right-clicked by @KevinVandy in #963
    • New enableCellActions table option
    • New renderCellActionMenuItems table and column options
    • New MRT_ActionMenuItem component to make styling all MRT menu items consistently (icons, text, spacing) easier to be consistent.
  • Toggle all columns visible issue fixed by @Menghini in #966

New Contributors

Full Changelog: v2.9.2...v2.10.0

v2.9.2

26 Jan 05:39

Choose a tag to compare

What's Changed

  • Added disableScrollLock: true to all MUI Menus and Select Menus to keep menus with their anchor origin while scrolling by default
  • Switched pagination rows per page select to use native select by default in mobile viewports
  • Fixed pagination rows per page input label for accessibility attribute
  • Removed unnecessary ::after pseudo elements on table cells if they were unused
  • Fixed edge cases with footer cell alignment
  • Added position: 'relative' to table and all rows and cells
    • Fixed semantic sticky header regression
    • Fixed row order/dragging with column virtualization enabled bug

Full Changelog: v2.9.1...v2.9.2

v2.9.1

25 Jan 19:50

Choose a tag to compare

What's Changed

  • Fixed row selection highlighting logic on grouped/aggregated rows

Full Changelog: v2.9.0...v2.9.1

v2.9.0

24 Jan 09:25

Choose a tag to compare

What's Changed

  • Added new renderCaption table option to allow for a <caption> element to be rendered within the table by @lalong13 in #957
  • Fixed row hover opacity style issues for pinned columns and selected rows with ::before and ::after pseudo elements in pinned cells
  • Standardized data-index, data-pinned, and data-selected attributes on body rows, head cells, body cells, and footer cells where applicable
  • Column virtualization performance optimizations

New Contributors

Full Changelog: v2.8.0...v2.9.0

v2.8.0

20 Jan 03:55

Choose a tag to compare

What's Changed

  • Removed internal display column def memoization that caused edge cases with enabling and disabling features conditionally. (like enableRowActions and enableEditing, etc.)
  • Improved Column Resizing and Column/Row DnD Performance by caching column definitions while user is dragging.
  • Added new grow column option to allow for columns to grow to fill the remaining space in the table when layoutMode: 'grid-no-grow' is enabled, or to force a column to not grow when layoutMode: 'grid' is enabled and grow: false is set.
    • mrt-row-select, mrt-row-drag, mrt-row-pin, and mrt-row-number columns are now set to grow: false by default now.
    • mrt-row-expand column is also set to grow: false if only detail panels are enabled.
    • mrt-row-expand is now set to a size: 100 by default (slightly wider)
  • Fixed indentation of mrt expand column when layoutMode was grid or grid-no-grow (using margin instead of padding now)
  • Modified editSelectOptions to allow for dynamic values on a per-cell basis. ({ row, cell, etc. }) => []
  • Fixed edit textbox controlled component warning
  • fix docs claim about default sorting function by @andreimatei in #947
  • MRT Display Columns with better column resizing performance and less memoization by @KevinVandy in #949

New Contributors

Full Changelog: v2.7.0...v2.8.0

v2.7.0

18 Jan 06:16

Choose a tag to compare

What's Changed

  • New 'positionCreatingRow' table option to customize where the creating row is rendered in the table body.
  • All MRT MUI menus now use the baseBackgroundColor mrt theme color for the menu background color.
  • Fixed bug where the page index was not being reset to last page with rows when number of rows in the table changed.
  • Made some tooltips text non-interactive to prevent accidental clicks.
  • Simplified internal column preparation APIs.

Full Changelog: v2.6.1...v2.7.0

v2.6.1

12 Jan 00:15

Choose a tag to compare

What's Changed

  • Upgraded to TanStack Table v8.11.6 for SSR bugfix (document not defined)

Full Changelog: v2.6.0...v2.6.1

v2.6.0

11 Jan 23:37

Choose a tag to compare

What's Changed

  • Added support for Detail Panels and Row Virtualization at the same time
  • Added support for Conditional Detail Panels (expand button is disabled when renderDetailPanel returns falsy value). Empty detail panels <tr> still render for virtualization and striped rows to work properly.
  • Fixed Row Selection indeterminate and checked state when sub-row selection is off
  • Fixed Expand Row Button padding and rotation in RTL mode
  • Fixed Pagination Icon Buttons in RTL mode
  • Set a default "right" cell alignment when theme.direction is "rtl"
  • Improved Header Group Column Sizing
  • Removed some internal "@mui/material" imports. (Could speed up dev server hot reloads in some cases)

New Contributors

Full Changelog: v2.5.2...v2.6.0

v2.5.2

10 Jan 18:21

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.5.1...v2.5.2

v2.5.1

09 Jan 20:01

Choose a tag to compare

What's Changed

  • Fixed selected row count in toolbar alert banner when using manualPagination
  • Fixed row dragging with column virtualization enabled
  • Fixed filter mode switching away from empty/notEmpty having an empty space value
  • Fixed any setDragImage errors with internal try/catch when refs are null
  • Fixed filter range slider not having a min width in popover columnFilterDisplayMode
  • Changed guide for customizing components to include reference to cust… by @65001 in #928
  • Fixed space char after change from empty filter to equal, contains fi… by @alexzrp in #919
  • storybook: implement multi row selection with hold shift by @dangkhoa99 in #917

New Contributors

Full Changelog: v2.5.0...v2.5.1