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

Adding initialState prop makes positionActionsColumn="last" not work #5

Closed
2 tasks done
ryanmk54 opened this issue Jun 21, 2022 · 2 comments
Closed
2 tasks done

Comments

@ryanmk54
Copy link
Contributor

Describe the bug

positionActionsColumn="last" works correctly without the initialState prop
After adding

const initialState = {
  density: "compact"
} as const;

and reloading, the actions column is the first column again.

Your minimal, reproducible example

https://codesandbox.io/s/infallible-dubinsky-555h5q?file=/src/TS.tsx:469-524

Steps to reproduce

  1. The actions column is in the first column when first loading the page

Expected behavior

As a user, I am expecting the positionActionsColumn="last" to put the actions column in the last column, but it is still in the first column.

How often does this bug happen?

Every time

Screenshots or Videos

image

material-react-table version

0.13.1

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
@KevinVandy
Copy link
Owner

This is a really interesting array dependency problem or something here. Thanks for finding it. Will get to work on it.

@KevinVandy
Copy link
Owner

fixed as of V0.13.3 along with other column ordering fixes

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

2 participants