I ran into a bug when using the Change Cell event handler directly on an editable table column (instead of the table's Save Actions handler). When the event handler triggers a query that reads table.selectedSourceRow, Firefox consistently captures the previously selected row rather than the row that was just edited.
How to reproduce
I put together a minimal demo app to isolate the issue. Here's the setup:
-
A table has one or more editable columns with a Change Cell event handler (not Save Actions).
-
The event handler fires a query that reads
table.selectedSourceRowand persists it to a state variable.
Steps to trigger the bug:
-
Select a row, then edit a cell in a different row.
-
In Chrome/Safari: state is correctly updated with the edited row.
-
In Firefox: state is updated with the previously selected row.
Workaround & why it's not good enough
Adding a 500ms debounce to the query does fix the issue, but I don't want to rely on this. A user on a slower machine might still hit the same problem, so it feels like patching over a timing issue rather than actually solving it.
Here is an JSON export of my app
Firefox bug.json (23.5 KB)
Has anyone else run into this or found a more reliable fix?



