You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing a cell in TreeTable, the onCellEditComplete is not called, making it impossible to fire a request to backend etc.
Also, I found out that due to switchCellToViewMode being bound to document's click event listener, the callback provided to onCellEditCompleted is bound to stale component's state, thus it's crucial to use a callback mode of setState to work on fresh data - I added such info in the docs, both for DataTable and TreeTable.
There was also an issue with the editor keeping old data after canceling the edition. I fixed that so after escaping a cell editor and opening it again, the state of editor is reset.
When it comes to reproducers, the ones existing in the docs are enough.
I'm working on the version 10.9.1 of primereact.
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Jan 22, 2025
Describe the bug
When editing a cell in TreeTable, the onCellEditComplete is not called, making it impossible to fire a request to backend etc.
Also, I found out that due to switchCellToViewMode being bound to document's click event listener, the callback provided to onCellEditCompleted is bound to stale component's state, thus it's crucial to use a callback mode of setState to work on fresh data - I added such info in the docs, both for DataTable and TreeTable.
There was also an issue with the editor keeping old data after canceling the edition. I fixed that so after escaping a cell editor and opening it again, the state of editor is reset.
When it comes to reproducers, the ones existing in the docs are enough.
I'm working on the version 10.9.1 of primereact.
Reproducer
https://stackblitz.com/run?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
Expected behavior
The callback should be called after the cell completion is finished, but it is not.
The text was updated successfully, but these errors were encountered: