When using the <Column />'s sortable property in combination with editor and any editMode in <DataTable />, the editor sometimes displays an outdated value momentarily after sorting the rows.
This issue is less noticeable with smaller tables but becomes increasingly apparent as the number of elements grow.
Most likely just a re-rendering issue which explains why you see it with the more data in the table. Would love some analysis or a PR if someone figures it out!
Describe the bug
When using the
<Column />
's sortable property in combination with editor and any editMode in<DataTable />
, the editor sometimes displays an outdated value momentarily after sorting the rows.This issue is less noticeable with smaller tables but becomes increasingly apparent as the number of elements grow.
Reproducer
https://stackblitz.com/edit/vitejs-vite-iibrgb?file=src%2FApp.tsx
PrimeReact version
10.6.6
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The configured editor is always rendered with a correct value after sorting the rows.