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] Row does not get selected when clicking on action cell #12911

Closed
dassoumyashree opened this issue Apr 25, 2024 · 2 comments
Closed
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Selection Related to the data grid Selection feature status: waiting for author Issue with insufficient information

Comments

@dassoumyashree
Copy link

dassoumyashree commented Apr 25, 2024

Steps to reproduce

Link to live example: (required)

Steps:

  1. click on any cell of the data-grid, the entire row will get selected and a background color will get applied on that selected row
  2. now click anywhere inside grid action cells (where column type is 'action'), the row will not get selected and there will be no row highlight, means no change in background color for that row.

Current behavior

clicking on cells of type 'action' does not select the row

Expected behavior

like how on clicking on cells with other types the entire row gets selected and highlighted, action cells should also allow the same behaviour.

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: gridactioncell, row selection

@dassoumyashree dassoumyashree added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 25, 2024
@zannager zannager added the component: data grid This is the name of the generic UI component, not the React module! label Apr 26, 2024
@michelengelen
Copy link
Member

Hey @dassoumyashree and thanks for raising an issue here.
As far as I am concerned I would not expect the row to be selected when clicking inside an actions cell. Is there a specific use case you need this for?

WDYT @MBilalShafi ?

@michelengelen michelengelen changed the title Row does not get selected on clicking on data-grid action cells [data grid] Row does not get selected when clicking on action cell Apr 26, 2024
@michelengelen michelengelen added status: waiting for author Issue with insufficient information feature: Selection Related to the data grid Selection feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 26, 2024
Copy link

github-actions bot commented May 3, 2024

The issue has been inactive for 7 days and has been automatically closed.

@github-actions github-actions bot closed this as completed May 3, 2024
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: Selection Related to the data grid Selection feature status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

3 participants