mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-23 13:11:05 +03:00
Root cause: fillTableRow used child-index matching between grid header and body cells. When headers are merged (e.g. "Бизнес-процесс источник" spanning two body columns), header has more children than body — indices diverge, click lands on wrong cell, fields stay empty. Fixes: - Use `colindex` attribute (set by 1C platform) to match header→body cells reliably across merged headers (cellCoords + nextCoords) - Add `scrollIntoView()` before clicking — fills cells behind horizontal scroll - Sort fields by colindex before processing — Tab-loop goes left→right regardless of field order in the passed object - Limit F4 to tree grids only — prevents calculator popup on numeric fields in flat grids which breaks Tab-loop focus - Add paste fallback in directEditForm path for plain-text/numeric fields Tested: 12/12 automated scenarios (single/multi field, add/edit, scroll, reverse order, mixed types, tree grid, multiple tables, checkbox). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>