Cookbook
Tables
Stable
Focus Jumping in Inline-Editable Tables
Why focus flies to the first row of the table after an inline edit saves, and the snapshot-restore-verify pattern that puts the cursor back where the user left it when Turbo replaces the whole row.
Live demo — try it
Open full screen
Related
Cookbook
High-Quality Inline-Editable Table
The base pattern. It edits one cell with a fetch and never replaces the row, so it never hits this bug — read it first if you are building a grid from scratch.
Cookbook
Multi-Select, Bulk Edit & Mass Reassignment
The other thing that goes wrong when a table row save gets clever. Read before adding multi-select.
Cookbook
Async Action Feedback
The saving/saved indicator that sits next to this pattern.