Keeping DOM State Stable in Elm Lists with Html.Keyed
When Elm reorders or deletes a list row, the runtime diffs positionally, shifting focus and typed input to the wrong row. Using Html.Keyed with stable data-derived keys preserves DOM node identity, keeping input state anchored to the logical item.