Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable: Not able to use MultiSelect Column and option at the same time. #6429

Open
Aspyryan opened this issue Sep 18, 2024 · 1 comment
Open
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Aspyryan
Copy link

Describe the bug

When trying to use a multiselect column and a selectionMode: Multiple on the same datatable, selecting it will not work. When hitting the checkbox, 2 events are fired. A select event from the checkbox, then a propagation to the row click which fires another select event, which unselects the same row. Thus this is making it unable to select the row. The checkbox should have .stopPropagation() event on it.

Reproducer

https://stackblitz.com/edit/rmytwj?file=src%2FApp.vue

PrimeVue version

4.0.7

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Stackblitz, Edge

Steps to reproduce the behavior

  1. Click on the row only multiple times and see it updating correctly
  2. Click the checkbox and watch it completely break

Expected behavior

Should stop propagating after the checkbox click so the row-click is not fired after.

@Aspyryan Aspyryan added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 18, 2024
@Aspyryan
Copy link
Author

I think this should fix it (untested): master...Aspyryan:primevue:patch-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant