primefaces / primefaces/primereact
TreeTable: RemovableSort not applied on the row children
Nobody has claimed this yet.
- 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
- Click on the sort icon
The applications children are sorted in an ascending order. - Click on the sort icon
The applications children are sorted in a descending order - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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