Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Oct 10, 2023
1 parent b1e59b1 commit a8f2332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dragdrop/ranking-select-to-rank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class DragDropRankingSelectToRank extends DragDropRankingChoices {
let fromIndex = fromChoicesArray.indexOf(this.draggedElement);
let toIndex = toChoicesArray.indexOf(this.dropTarget);

if(toIndex === -1) toIndex = toChoicesArray.length;
if (toIndex === -1) toIndex = questionModel.value.length;

rankFunction(questionModel, fromIndex, toIndex);
this.doUIEffects(dropTargetNode, fromIndex, toIndex);
Expand Down

0 comments on commit a8f2332

Please sign in to comment.