Table: Sorting is not restored when using stateful table and presort #16551
Labels
Status: Pending Review
Issue or pull request is being reviewed by Core Team
Milestone
Describe the bug
When using the
p-table
component:sortField
and/orsortOrder
stateKey
The table does not maintain custom sorting upon page reload.
Environment
Irrelevant (reproducible consistently on stackblitz)
Reproducer
https://stackblitz.com/edit/g3lsdy?file=src%2Fapp%2Ftable-stateful-demo.html
Angular version
18.1.1
PrimeNG version
17.18.9
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.1
Browser(s)
No response
Steps to reproduce the behavior
sortField
and/orsortOrder
stateKey
Expected behavior
The new sort field / order defined in step 3. should be maintained upon page reload. Instead, the default presort is always applied upon page reload.
The text was updated successfully, but these errors were encountered: