-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[core] Simplify isPrintableKey logic #5414
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
Conversation
These are the results for the performance tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be great to add a test case for this. It's the second time we iterate on the logic to fix a bug. The first time was in #1409. We also fix the logic with, say when typing "$12" into the cell.
Sure, makes sense. I was looking a bit at the test in |
Feel free to open another PR for the test |
Thanks @flaviendelangle |
This test file is divided into groups whose tests inside reproduce how the user would interact with the editing functionality. The first group is The new test could be inside mui-x/packages/grid/x-data-grid-pro/src/tests/cellEditing.DataGridPro.new.test.tsx Lines 586 to 587 in 21c1f6c
|
Related to #4687
I need this for fixing the build-in mui/material-ui#33196
Before
https://62b570c40e29bd000905cd20--material-ui-x.netlify.app/x/react-data-grid/editing/#making-a-column-editable
https://62b570c40e29bd000905cd20--material-ui-x.netlify.app/x/react-data-grid/#mit-version
After
https://deploy-preview-5414--material-ui-x.netlify.app/x/react-data-grid/editing/#making-a-column-editable
https://deploy-preview-5414--material-ui-x.netlify.app/x/react-data-grid/#mit-version