primefaces / primefaces/primereact

TreeTable: RemovableSort not applied on the row children

Open
#6,256 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Triage
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

On clicking 3 times on the sort icon, the row children order doesn't revert to the initial state.

Reproducer

https://stackblitz.com/edit/wwaugc-jqqvan?file=src%2FApp.jsx,src%2Fservice%2FNodeService.jsx

PrimeReact version

10.3.1

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

The initial order of the applications children is: 2-React, 3-editor.app, 1-settings-app

  1. Click on the sort icon
    The applications children are sorted in an ascending order.
  2. Click on the sort icon
    The applications children are sorted in a descending order
  3. Click on the sort icon
    The applications children order should be: 2-React, 3-editor.app, 1-settings-app instead of 3-editor.app, 2-React, 1-settings.app
Expected behavior

The row children order should be reverted to the initial state on clicking 3 times on the sort icon.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz reproducer, especially src/App.jsx and src/service/NodeService.jsx, and confirm the three-state sort sequence in the TreeTable. Trace the removable-sort handling for row children, then verify that the third click restores the original child order.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.