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

Pinning hidden columns with column virtualization causes error #1012

Open
1 task done
ktmotquin opened this issue Feb 27, 2024 · 0 comments
Open
1 task done

Pinning hidden columns with column virtualization causes error #1012

ktmotquin opened this issue Feb 27, 2024 · 0 comments

Comments

@ktmotquin
Copy link

ktmotquin commented Feb 27, 2024

material-react-table version

2.12.0

react & react-dom versions

18.2.0

Describe the bug and the steps to reproduce it

While working will column virtualization, I noticed the table would crash when trying to pin a hidden column. This can be done using the 'Column Virtualization Example' in the docs, which I will also link below. This is only a problem with column virtualization turned on.

Steps to reproduce

  • Open 'Show/Hide Columns' menu
  • Click 'Hide all'
  • Start pinning columns (i.e. 'Row Numbers', 'Column 0', 'Column 1')
  • When trying to pin the 3rd column ('Column 1') and error occurs.

The error points to this line of code:

Minimal, Reproducible Example - (Optional, but Recommended)

https://www.material-react-table.com/docs/examples/column-virtualization#column-virtualization-example

Screenshots or Videos (Optional)

Screen.Recording.2024-02-27.at.1.00.57.PM.mov

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

No, because I do not know how

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