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

Warning selectLabel is not implemented in ForwardRef(TablePagination) #2137

Closed
2 tasks done
pheintzelman opened this issue Jul 12, 2021 · 1 comment
Closed
2 tasks done
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@pheintzelman
Copy link

pheintzelman commented Jul 12, 2021

Getting this warning when using a simple datagrid.

The full warning is:

"Material-UI: The key selectLabel provided to the classes prop is not implemented in ForwardRef(TablePagination).
You can only override one of the following: root,toolbar,spacer,caption,selectRoot,select,selectIcon,input,menuItem,actions."

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Getting a warning.

Expected Behavior 🤔

No warning.

Steps to Reproduce 🕹

Use this datagrid:

 <DataGrid
            columns={[
              {
                field: "title",
                headerName: "Title",
                flex: 1
              },
            ]}
            rows={[{ id: 1, title: "hello world" }]}
            className="collection"
            disableSelectionOnClick
          />

Steps:

  1. Use the above dataGrid

Context 🔦

Your Environment 🌎

  Output from `npx @material-ui/envinfo`:
   System:
    OS: macOS 11.4
  Binaries:
    Node: 12.20.0 - ~/.nvm/versions/node/v12.20.0/bin/node
    Yarn: Not Found
    npm: 6.14.8 - ~/.nvm/versions/node/v12.20.0/bin/npm
  Browsers:
    Chrome: 91.0.4472.114
    Edge: Not Found
    Firefox: 83.0
    Safari: 14.1.1
  npmPackages:
    @material-ui/core: ^4.11.4 => 4.12.1 
    @material-ui/data-grid: ^4.0.0-alpha.33 => 4.0.0-alpha.33 
    @material-ui/icons: ^4.11.2 => 4.11.2 
    @material-ui/styles:  4.11.4 
    @material-ui/system:  4.12.1 
    @material-ui/types:  5.1.0 
    @material-ui/utils:  4.11.2 
    @types/react:  17.0.13 
    react: ^17.0.2 => 17.0.2 
    react-dom: ^17.0.2 => 17.0.2 

    Browser: Chrome

Order id 💳

@pheintzelman pheintzelman added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 12, 2021
@dtassone dtassone added bug 🐛 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 14, 2021
@oliviertassinari
Copy link
Member

Duplicate of #2106

@oliviertassinari oliviertassinari marked this as a duplicate of #2106 Jul 17, 2021
@github-actions github-actions bot added the duplicate This issue or pull request already exists label Jul 17, 2021
@oliviertassinari oliviertassinari added component: data grid This is the name of the generic UI component, not the React module! and removed bug 🐛 Something doesn't work labels Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants