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] Preprocess edit cell props on backspace/delete #15151

Merged
merged 6 commits into from
Nov 1, 2024

Conversation

KenanYusuf
Copy link
Member

@KenanYusuf KenanYusuf commented Oct 28, 2024

Calls preProcessEditCellProps when a cell contents is deleted by the backspace/delete key.

Before: https://codesandbox.io/p/sandbox/15151-preprocess-edit-cell-on-delete-after-forked-7vwlyg
After: https://codesandbox.io/p/sandbox/elegant-pond-nchrgq

Closes #15058

@KenanYusuf KenanYusuf added component: data grid This is the name of the generic UI component, not the React module! feature: Editing Related to the data grid Editing feature labels Oct 28, 2024
@KenanYusuf KenanYusuf changed the title [DataGrid] Preprocess edit cell props on delete [DataGrid] Preprocess edit cell props on backspace/delete Oct 28, 2024
@mui-bot
Copy link

mui-bot commented Oct 28, 2024

Deploy preview: https://deploy-preview-15151--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against a927b5d

@KenanYusuf KenanYusuf requested a review from a team October 28, 2024 14:58
@arminmeh
Copy link
Contributor

Can you add a test for this?

@KenanYusuf
Copy link
Member Author

Can you add a test for this?

@arminmeh I have added a basic test for cell and row editing - anything else you think should be tested?

@arminmeh
Copy link
Contributor

I have added a basic test for cell and row editing - anything else you think should be tested?

Ignore 😆
Collapsed the files when I started. Continued review today, forgot about the test being there 😅

@KenanYusuf KenanYusuf added the needs cherry-pick The PR should be cherry-picked to master after merge label Oct 30, 2024
@KenanYusuf KenanYusuf merged commit 808c253 into mui:master Nov 1, 2024
18 checks passed
@KenanYusuf KenanYusuf deleted the preprocess-edit-props-fix branch November 1, 2024 09:57
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: Editing Related to the data grid Editing feature needs cherry-pick The PR should be cherry-picked to master after merge
Projects
None yet
3 participants