Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky Row Pinning broken when row virtualization is enabled #1310

Open
1 task done
TobiasSenger opened this issue Nov 21, 2024 · 0 comments
Open
1 task done

Sticky Row Pinning broken when row virtualization is enabled #1310

TobiasSenger opened this issue Nov 21, 2024 · 0 comments

Comments

@TobiasSenger
Copy link

material-react-table version

v3.0.1

react & react-dom versions

18.3.1

Describe the bug and the steps to reproduce it

When row virtualization is enabled, sticky row pinning does not work. As soon as I disable rowVirtualization or change the rowPinningDisplayMode to something else, it works again.

Minimal, Reproducible Example - (Optional, but Recommended)

const tableConfig: MRT_TableOptions<{ id: number }> = {
  data: Array(100).fill({ id: 'id' }).map((_, id) => ({ id })),
  columns: [
    {
      id: 'id',
      header: 'ID',
      accessorKey: 'id',
    },
  ],
  getRowId: (row) => row.id.toString(),
  enableRowVirtualization: true,
  enableRowPinning: true,
  rowPinningDisplayMode: 'sticky',
  enablePagination: false,
  enableStickyHeader: true,
  initialState: {
    rowPinning: {
      top: ['0'],
      bottom: [],
    },
  },
};

const table = useMaterialReactTable(tableConfig);

return <MaterialReactTable table={table} />;

Screenshots or Videos (Optional)

image
image
image
image

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

Maybe, I'll investigate and start debugging

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant