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

[data grid] Fixed issue where pressing Delete key resets various cell values to empty string. #12216

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

sooster910
Copy link
Contributor

@sooster910 sooster910 commented Feb 26, 2024

Fix #12125 michelengelen

This PR refines the value reset logic to align with column data types on Backspace/Delete key press.

UnitTesting
Implemented tests to check cell value reset upon Backspace and Delete key presses.

The video shows the correct default boolean value when the delete/backspace key is pressed.

mui-x

@sooster910 sooster910 changed the title [data-grid] Fix pressing Delete key in a Boolean type cell, the value incorrectly resets to empty string [Data-Grid] Fix pressing Delete key in a Boolean type cell, the value incorrectly resets to empty string Feb 26, 2024
@sooster910 sooster910 changed the title [Data-Grid] Fix pressing Delete key in a Boolean type cell, the value incorrectly resets to empty string [DataGrid] Fix pressing Delete key in a Boolean type cell, the value incorrectly resets to empty string Feb 26, 2024
@mui-bot
Copy link

mui-bot commented Feb 26, 2024

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

Generated by 🚫 dangerJS against dbd38f2

@sooster910 sooster910 changed the title [DataGrid] Fix pressing Delete key in a Boolean type cell, the value incorrectly resets to empty string [DataGrid] Fixed issue where pressing Delete key resets various cell values to empty string. Feb 27, 2024
@zannager zannager added the component: data grid This is the name of the generic UI component, not the React module! label Feb 27, 2024
@sooster910
Copy link
Contributor Author

Hi @michelengelen Could you kindly take a moment to review the PR I submitted? 🙇‍♀️ Any suggestion would be appreciated!

@michelengelen michelengelen changed the title [DataGrid] Fixed issue where pressing Delete key resets various cell values to empty string. [data grid] Fixed issue where pressing Delete key resets various cell values to empty string. Mar 13, 2024
@michelengelen michelengelen added the bug 🐛 Something doesn't work label Mar 13, 2024
Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ... thanks for picking it up!

Let's wait for the review from @romgrk though!

@sooster910
Copy link
Contributor Author

LGTM ... thanks for picking it up!

Let's wait for the review from @romgrk though!

Thanks a lot!!

@romgrk romgrk merged commit 9b4cb6c into mui:next Mar 13, 2024
18 checks passed
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work 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.

[data grid] Pressing Delete key in a Boolean type cell, the value incorrectly resets to empty string
5 participants