gregnb / gregnb/mui-datatables

option selectableRowsOnClick set to true stops onRowClick firing

Open
#1,558 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
905
PR merge metrics
No merged PRs in 30d

Description

## Expected Behavior
onRowClick should still fire when selectableRowsOnClick set to true

## Current Behavior
onRowClick does not fire when selectableRowsOnClick set to true

## Steps to Reproduce (for bugs)
[https://codesandbox.io/s/elated-wave-t4q0h?file=/src/App.js](https://codesandbox.io/s/elated-wave-t4q0h?file=/src/App.js)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked CodeSandbox in src/App.js and reproduce the interaction with selectableRowsOnClick set to true. Trace how the onRowClick and row-selection callbacks behave together, then verify that both the row click and selection actions occur as described in Expected Behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.