Merge pull request #4193 from mfilser/fix_multi_selection_keep_cards_order_on_dragging_to_another_column

Moving many cards with multi selection drag/drop to another list keeps the card order
This commit is contained in:
Lauri Ojansivu 2021-11-26 01:20:52 +02:00 committed by GitHub
commit 6d3b979d67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ BlazeComponent.extendComponent({
$cards.sortable('cancel');
if (MultiSelection.isActive()) {
Cards.find(MultiSelection.getMongoSelector()).forEach((card, i) => {
Cards.find(MultiSelection.getMongoSelector(), {sort: ['sort']}).forEach((card, i) => {
const newSwimlaneId = targetSwimlaneId
? targetSwimlaneId
: card.swimlaneId || defaultSwimlaneId;