Data Table row checkboxes propagate click events leading to double-handling of row select/unselect #2259
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
CodeSandbox Case (Bug Reports)
Please demonstrate your case at CodeSandbox by using the issue template below. Issues without a test case have much less possibility to be reviewed in detail and assisted.
https://codesandbox.io/s/unruffled-thompson-x8pg2g
Current behavior
Row checkboxes don't stop event propagation
Expected behavior
Row checkbox stops event propagation so click events don't fire twice, e.g. unselecting and then reselecting the row from just one click
Minimal reproduction of the problem with instructions
See the CodeSandbox for demo, or create a data table with selectionMode="multiple" as well as a column with selectionMode="multiple"
The row is still selected because the click triggers both the checkbox's and the row's @click events.
What is the motivation / use case for changing the behavior?
I want to be able to select and unselect rows using both the checkboxes and by clicking on the rows.
Please tell us about your environment:
Windows 11
The text was updated successfully, but these errors were encountered: