diff --git a/examples/react/mantine-react-table/src/mantine-react-table/hooks/useMRT_TableOptions.ts b/examples/react/mantine-react-table/src/mantine-react-table/hooks/useMRT_TableOptions.ts index e45452e80c..24d5ba3163 100644 --- a/examples/react/mantine-react-table/src/mantine-react-table/hooks/useMRT_TableOptions.ts +++ b/examples/react/mantine-react-table/src/mantine-react-table/hooks/useMRT_TableOptions.ts @@ -251,6 +251,10 @@ export const useMRT_TableOptions: ( } : {}), }, + // v9's `row.toggleExpanded()` is a no-op unless `getCanExpand()` is true, + // which by default requires subRows. Every row with a detail panel must be + // expandable, even in flat data. A user-supplied `getRowCanExpand` wins. + getRowCanExpand: rest.renderDetailPanel ? () => true : undefined, getSubRows: (row: TData) => (row as any)?.subRows, icons, layoutMode,