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

[DataGrid] Fix focused cell if column is spanned and new editing API is used #5962

Merged
merged 4 commits into from
Sep 2, 2022

Conversation

m4theushw
Copy link
Member

@m4theushw m4theushw commented Aug 30, 2022

While fixing the tests for #5911 I noticed that, when using the new editing API, if a cell is committed with Enter and the cell below is spanned, the focus is not moved to the correct cell.

Before: https://codesandbox.io/s/keen-christian-ipv4v4?file=/demo.tsx
After: https://codesandbox.io/s/serverless-microservice-8hbnoe?file=/demo.tsx

How to reproduce:

  • Press Enter in the Rating column in the 2nd row (Adidas)
  • Enter again

Expected behavior

It should move focus to the price column in the last row but it doesn't. In the legacy API it works as expected.

@m4theushw m4theushw added the component: data grid This is the name of the generic UI component, not the React module! label Aug 30, 2022
@mui-bot
Copy link

mui-bot commented Aug 30, 2022

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 334.7 614.6 433.5 467.14 123.025
Sort 100k rows ms 469.6 897.7 799.4 739.48 149.543
Select 100k rows ms 173 297.8 231.3 237.48 41.123
Deselect 100k rows ms 126.4 289.7 208 215.12 58.588

Generated by 🚫 dangerJS against 023709f

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Aug 30, 2022
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Aug 30, 2022
@m4theushw m4theushw requested a review from cherniavskii August 30, 2022 22:48
@m4theushw m4theushw merged commit 83a18e9 into mui:master Sep 2, 2022
@m4theushw m4theushw deleted the column-spanning-new-editing-api branch September 2, 2022 17:08
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!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants