You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@eddieleem this is easily solved by stopping propagation on click of the button, but I agree that this should be added to the example, so I'll raise a PR to add that information.
@khmakoto Thank you. You are right.
I've checked again and I confirm stopPropagation worked like a charm for Button and is not a bug for DataGrid.
However, I found that stopPropagation does not work with Checkbox or ToggleButton.
Using stopPropagation affected the actual function of Checkbox and ToggleButton, meaning it stopped changing the selection for DataGrid but that made checkbox uncheckable.
It's a bug of Checkbox and ToggleButton. I will open another issue.
Component
DataGrid
Package version
9.56
React version
18
Environment
Current Behavior
Clicking on a button or checkbox in a cell also changes the DataGrid selection.
Expected Behavior
Clicking on a button or checkbox in a cell must not change the DataGrid selection
Reproduction
https://react.fluentui.dev/?path=/docs/components-datagrid--docs
Steps to reproduce
Are you reporting an Accessibility issue?
None
Suggested severity
High - No workaround
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
The text was updated successfully, but these errors were encountered: