TreeTable: Row selected on click at node toggle icon #6932
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
TreeTable toggles selection when clicked exactly on expand icon (when clicked directly on button works fine). Here is example:
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-fz8jucim
PrimeVue version
4.2.4
Vue version
4.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
When you click on a button or icon in that button, the row should expand without selection.
I was able to find that problem is in
packages\primevue\src\treetable\TreeTableRow.vue
inonClick
method:Need to add
|| getAttribute(event.target, 'data-pc-section') === 'nodetoggleicon'
check, because icon has attributedata-pc-section="nodetoggleicon"
, not therowtoggleicon
The text was updated successfully, but these errors were encountered: