Skip to content

Start no drag from a press on a board that misses every card - #6850

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6848
Nov 23, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-6848

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

A press inside a board's column that lands on no card, such as on a column's heading, threw TypeError: Cannot read properties of null (reading 'getAttribute') from the board's Sortable filter. Sortable passes the press's closest lf-card as the filter's target, which is null off a card. #6759 made #movable read the card's shows attribute before anything else, so the null reached showsId. The filter now returns true for a null target. Sortable then starts no drag, as it did before #6759. The other #movable callers (availability painting, the grab command, the destination buttons) always pass a card, so #movable keeps its card-only contract.

tests/browser/test_render_anchors.py::test_a_widgets_attribute_takes_a_comment_like_any_other_passage drags across a column's heading. It failed at teardown on main at 39ee727dd with the trace above and passes with this change. tests/runtime/board-order.test.mjs still passes.

Closes #6848 — automated triage

Sortable's filter receives a null target for a press inside a board's
column but on no card, such as a column's heading. Since #6759, #movable
reads the card's shows attribute first, so that press threw a TypeError
on every board. The filter now treats a null target as filtered, which
starts no drag, as before.

Closes #6848
@leaf-agent
leaf-agent merged commit 0178e11 into main Nov 23, 2026
7 of 8 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6848 branch November 23, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_a_widgets_attribute_takes_a_comment_like_any_other_passage: lf-board's Sortable filter passes a null card to #movable since #6759

1 participant