DataTable - button click in a cell propagates to row-click #6472
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.Clicking on a button inside a row in PrimeVue's DataTable still triggers the row's onRowClick event, which causes unwanted navigation. The patch prevents this by checking if the click target has the class 'p-button' and halting further execution if it does (it is a workaround and not an actual solution of course). In this example the button is used to open a ConfirmPopup element which, when stopPropagation is applied, is misplaced. (#5929)
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: