-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] Allow to navigate between cells with keyboard once inside an actions
column
#3375
Conversation
@m4theushw it seems that if you navigate in & out of the action column, the ripple/focus effect keeps on stacking: |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
These are the results for the performance tests:
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
👋 The migration PR has been merged. Please follow these steps to make sure that the contents are all updated. (Sorry for the inconvenience)
If you are struggle with the steps above, feel free to tag @siriwatknp |
62426a3
to
0656edf
Compare
0656edf
to
7aeb935
Compare
7aeb935
to
66c5471
Compare
React.useLayoutEffect(() => { | ||
if (!hasFocus) { | ||
Object.entries(touchRippleRefs.current).forEach(([index, ref]) => { | ||
ref?.stop({}, () => { |
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.
I had to adapt the same workaround from #3835.
@@ -12,16 +12,32 @@ import { useGridRootProps } from '../../hooks/utils/useGridRootProps'; | |||
const hasActions = (colDef: any): colDef is GridActionsColDef => | |||
typeof colDef.getActions === 'function'; | |||
|
|||
type GridActionsCellProps = Pick<GridRenderCellParams, 'colDef' | 'id' | 'api'> & | |||
interface TouchRippleActions { |
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.
Not exported.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@@ -16,8 +16,6 @@ const GridActionsCellItem = (props: GridActionsCellItemProps) => { | |||
const { label, icon, showInMenu, onClick, ...other } = props; | |||
|
|||
const handleClick = (event: any) => { | |||
event.stopPropagation(); |
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.
<3
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Preview: https://deploy-preview-3375--material-ui-x.netlify.app/components/data-grid/columns/#special-properties
Fixes #3005