You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_a_widgets_attribute_takes_a_comment_like_any_other_passage: lf-board's Sortable filter passes a null card to #movable since #6759 #6848
tests/browser/test_render_anchors.py::test_a_widgets_attribute_takes_a_comment_like_any_other_passage errors at teardown on main at 49007d755 (run 45113117050). It passed in push run 45104895190 at 10ac9da49.
The deciding error:
TypeError: Cannot read properties of null (reading 'getAttribute')
at showsId (packages/default/widgets/lf-board.js:143:32)
at #movable (packages/default/widgets/lf-board.js:422:12)
at Sortable.filter (packages/default/widgets/lf-board.js:857:49)
at Sortable._onTapStart (vendor/sortable.esm.js:1207:18)
Diagnosis so far: the board's Sortable filter (lf-board.js:857) calls this.#movable(card) with a null card. This happens on a tap that lands inside the board but not on an lf-card, such as the test's press on a widget's attribute. #6759 (f9112ee42) added line 422, if (!showsId(card)) …, which dereferences the card before anything else does. A pointer-down that is not on a card then throws on every board. The fix belongs where Sortable hands over a null target (in the filter callback, or by #movable not taking a non-card). Each #movable caller then needs checking against the contract that null holds.
#6850 fixes this. The board's Sortable filter now returns true for a null target, so a press inside a board that misses every card starts no drag and no longer throws. #movable keeps taking only cards: its other callers all pass one. The failing test reproduced on main at 39ee727dd and passes with the change. Review and the PR's CI are still pending, and tend-land takes the landing from here.
Activity
leaf-agent commentedon Nov 23, 2026
#6850 fixes this. The board's Sortable
filternow returns true for a null target, so a press inside a board that misses every card starts no drag and no longer throws.#movablekeeps taking only cards: its other callers all pass one. The failing test reproduced on main at39ee727ddand passes with the change. Review and the PR's CI are still pending, and tend-land takes the landing from here.