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

fix: column right pin ruins menu order #1019

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

renatoka
Copy link
Contributor

column right pin pushes menu item to the bottom instead of keeping correct order

closes #1018

column right pin pushes menu item to the bottom instead of keeping correct order
Copy link

vercel bot commented Feb 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
material-react-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 29, 2024 9:17am
material-react-table-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 29, 2024 9:17am

@KevinVandy
Copy link
Owner

This way it is was by design. And if we were to get rid of it, we would just simplify the code to table.getAllLeafColumns, instead of splicing out the pinned indexes, only to recombine them like in this PR.

@renatoka
Copy link
Contributor Author

@KevinVandy What do you recommend, which approach to go with? I am fairly new to contributing, especially in projects of this size, and also with limited knowledge to lets say performance of something (junior, 1 year work experience). This way I would love to learn from your thoughts and recommendations if I am able to contribute of any sort.

@KevinVandy
Copy link
Owner

This menu probably can be improved, especially for pinning. Just need to think about it a bit more.

@renatoka
Copy link
Contributor Author

Keep us posted.

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

Successfully merging this pull request may close these issues.

[UX] Pinning columns to the right pushes item to the bottom of menu
2 participants