DataTable bug when clicked in rowExpansion icon with selectionMode="single". #5074
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
In a DataTable component, when the props rowExpansion and selectionMode are active simultaneously, clicking directly on the icon in the expander column triggers the onSelectionChange function. If this function redirects to another page, it could pose a problem, and for users, it may not provide a positive experience.
Reproducer
https://stackblitz.com/edit/react-m38mg5-je4vzs?file=src%2FApp.js
PrimeReact version
10.0.2
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
onSelectionChange
Expected behavior
Expected just expand the row.
The text was updated successfully, but these errors were encountered: