Skip to content

Commit 8de777f

Browse files
committed
no row models if manual
1 parent ce98410 commit 8de777f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

packages/material-react-table/src/hooks/useMRT_TableOptions.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,18 @@ export const useMRT_TableOptions: <TData extends MRT_RowData>(
228228
? getFacetedUniqueValues()
229229
: undefined,
230230
getFilteredRowModel:
231-
enableColumnFilters || enableGlobalFilter || enableFilters
231+
(enableColumnFilters || enableGlobalFilter || enableFilters) &&
232+
!manualFiltering
232233
? getFilteredRowModel()
233234
: undefined,
234-
getGroupedRowModel: enableGrouping ? getGroupedRowModel() : undefined,
235-
getPaginationRowModel: enablePagination
236-
? getPaginationRowModel()
237-
: undefined,
238-
getSortedRowModel: enableSorting ? getSortedRowModel() : undefined,
235+
getGroupedRowModel:
236+
enableGrouping && !manualGrouping ? getGroupedRowModel() : undefined,
237+
getPaginationRowModel:
238+
enablePagination && !manualPagination
239+
? getPaginationRowModel()
240+
: undefined,
241+
getSortedRowModel:
242+
enableSorting && !manualSorting ? getSortedRowModel() : undefined,
239243
getSubRows: (row) => row?.subRows,
240244
icons,
241245
layoutMode,

0 commit comments

Comments
 (0)