KevinVandy/material-react-table

"enableRowVirtualization" doesn't work correctly with MRT_Table component

paul-joy opened this issue · 1 comments

material-react-table version

^2.13.0

react & react-dom versions

^18.2.0

Describe the bug and the steps to reproduce it

When a table is created with enableRowVirtualization being set to true and then used with MRT_Table no rows are displayed.

import {
  MRT_Table,
  useMaterialReactTable,
} from 'material-react-table';

const table = useMaterialReactTable({
  ...
  enableRowVirtualization: true,
  ...
})

return <MRT_Table table={table} />

Minimal, Reproducible Example - (Optional, but Recommended)

Please see the example which is a fork of this official example

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

As mentions here the <MRT_TableContainer /> component should be used to have row virtualization, modal editing, and full screen features