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

issue with grid cell selection and pagination #12039

Closed
kasherburn opened this issue Feb 12, 2024 · 5 comments
Closed

issue with grid cell selection and pagination #12039

kasherburn opened this issue Feb 12, 2024 · 5 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Cell Selection Related to the cell selection feature feature: Pagination Related to the data grid Pagination feature support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@kasherburn
Copy link

kasherburn commented Feb 12, 2024

The problem in depth

I have added pagination to my grid with page size options 5,10,25

Screenshot 2024-02-12 at 10 49 03 Screenshot 2024-02-12 at 10 50 30

whenever i click into the final row of any page except the first i get this error and the view breaks

helpers.js:88 Uncaught TypeError: Cannot destructure property 'id' of 'visibleRows.rows[(rowIndex + 1)]' as it is undefined.
at useGridCellSelection.js:394:1
at useGridPipeProcessing.js:92:1

any tips on how to resolve?

Your environment

Google Chrome Version 121.0.6167.160 (Official Build) (arm64)
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: grid cell selection
Order ID: 76498

@kasherburn kasherburn added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Feb 12, 2024
@zannager zannager added component: data grid This is the name of the generic UI component, not the React module! support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ labels Feb 12, 2024
@michelengelen
Copy link
Member

Hi @kasherburn ,

Please provide a minimal reproduction test case with the latest version. This would help a lot 👷.

A live example would be perfect. You can find a examples and guides on how to find templates in our docs with which you can provide examples for your specific use-case: Support - Bug reproduction.

Thank you! 🙇🏼

In the meantime I will try and look for the issue with a basic template!

@michelengelen michelengelen added status: waiting for author Issue with insufficient information feature: Pagination Related to the data grid Pagination feature feature: Cell Selection Related to the cell selection feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 12, 2024
@kasherburn
Copy link
Author

H @michelengelen I have found its coming from this prop: unstable_cellSelection. I know this is an experimental feature. Has it been reported by other users?

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Feb 14, 2024
@MBilalShafi
Copy link
Member

MBilalShafi commented Feb 14, 2024

Hello @kasherburn, I can't find a similar issue reported by another user.

Did you manage to get a minimal reproduction test case for the issue you are facing as requested by @michelengelen? Please attach it here if you do or try to reproduce one in a live example for the team to debug the problem better.

Thanks

@MBilalShafi MBilalShafi added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 14, 2024
@kasherburn
Copy link
Author

Apologies, I was a couple of versions behind. Updated the version and the bug has gone. @MBilalShafi @michelengelen will close this.

Copy link

⚠️ This issue has been closed.
If you have a similar problem, please open a new issue and provide details about your specific problem.
If you can provide additional information related to this topic that could help future readers, please feel free to leave a comment.

How did we do @kasherburn?
Your experience with our support team matters to us. If you have a moment, please share your thoughts through our brief survey.

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Feb 15, 2024
@zannager zannager removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 15, 2024
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! feature: Cell Selection Related to the cell selection feature feature: Pagination Related to the data grid Pagination feature support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

4 participants