Skip to content

TreeTable: onValueChange doesn't retrieve the initial data when removableSort is passed #8485

@BAISTM

Description

@BAISTM

Describe the bug

When the sort is reset, the onValueChange retrieves a wrong value.

Reproducer

https://stackblitz.com/edit/i3yupjwe-5ivzjcju?file=src%2FApp.jsx

System Information

primereact: 10.9.7

Steps to reproduce the behavior

  1. Sort the name column

The retrieved value is good ✅

Image
  1. Re-sort the name column

The retrieved value is good ✅

Image
  1. Re-sort the name column

The retrieved rows are not in the same order as the displayed rows.

Image

Expected behavior

The retrieved rows should always have the same order as the displayed rows.

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions