TreeTable: Bug when clicked in custom action button with selectionMode="single". #5522
Labels
Resolution: By Design
The behavior in the issue is by design and the component exhibits the expected behavior
Describe the bug
In a TreeTable component, when the props selectionMode and
onSelectionChange
callback function, clicking directly on the icon in the custom button column, triggers the onSelectionChange function. If both function open modals, it could pose a problem, and for users, it may not provide a positive experience.(This is similar a #5074 issue)
2023-12-04.17-13-21.mp4
Reproducer
https://codesandbox.io/p/sandbox/primereact-demo-forked-xkddq5?file=%2Fsrc%2FApp.tsx
PrimeReact version
10.2.1
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
When clicked directly on the icon of a button, call just the onClick function of this button.
The text was updated successfully, but these errors were encountered: