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

DataGridConfigurable & SelectColumnsButton preferenceKey broken #8431

Closed
wcoppens opened this issue Nov 24, 2022 · 1 comment · Fixed by #8432
Closed

DataGridConfigurable & SelectColumnsButton preferenceKey broken #8431

wcoppens opened this issue Nov 24, 2022 · 1 comment · Fixed by #8432
Labels

Comments

@wcoppens
Copy link
Contributor

wcoppens commented Nov 24, 2022

What you were expecting:
When using the <DataGridConfigurable> component and apply a property preferenceKey with any value. You expect that a <SelectColumnsButton> component with the same property and value to show the columns of that datagrid.

What happened instead:
Instead we see an empty list of selectable columns.

Related code:
Following sandbox illustrates the problem on the Posts list page:
https://codesandbox.io/s/cocky-hooks-078gbb?file=/src/posts/PostList.tsx:2183-2196

Environment

  • React-admin version: latest
  • React version: 18
  • Browser: chrome
@WiXSL
Copy link
Contributor

WiXSL commented Nov 24, 2022

Reproduced!
Thanks for the report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants