Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch primevue@4.0.7 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. (https://github.com/primefaces/primevue/issues/5929)
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
primevue@4.0.7
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. (https://github.com/primefaces/primevue/issues/5929)
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.