Skip to content

<TreeSelect> As a filter component in <DataTable> select bug #8213

@edgarsn

Description

@edgarsn

Describe the bug

When using <TreeSelect> within column filter, it's a bit buggy in a multiple cases causing <DataTable> filter to close unexpectedly.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/jdk9v2di-aajs64lo?file=src%2FApp.vue

Environment

Happens in local development (Node 22 LTS, NPM 10.9.3 , Ubuntu 24 LTS) and also reproducible on Stackblitz.

Vue version

3.5.22

PrimeVue version

4.4.1

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

When clicking on the filter icon in the column header, it offers to TreeSelect, but then there are few bug cases:

  1. Try expanding "Documents" and collapse it --> DataTable filter is closed.

Image

  1. Try expanding "Documents" and clicking on "Work" --> DataTable filter is closed and node is not selected.

Image

  1. Try expanding "Documents" and then expand "Work" -> DataTable filter is closed.

Image

Expected behavior

  1. It shall not close DataTable filter.
  2. It shall select node.
  3. It should not close DataTable filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions