Repository navigation
Start no drag from a press on a board that misses every card - #6850
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 Sortablefilter. Sortable passes the press's closestlf-cardas the filter's target, which is null off a card. #6759 made#movableread the card'sshowsattribute before anything else, so the null reachedshowsId. The filter now returns true for a null target. Sortable then starts no drag, as it did before #6759. The other#movablecallers (availability painting, the grab command, the destination buttons) always pass a card, so#movablekeeps its card-only contract.tests/browser/test_render_anchors.py::test_a_widgets_attribute_takes_a_comment_like_any_other_passagedrags across a column's heading. It failed at teardown on main at39ee727ddwith the trace above and passes with this change.tests/runtime/board-order.test.mjsstill passes.Closes #6848 — automated triage