Skip to content

Commit

Permalink
work for the #5328 (selectToRank name)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed May 29, 2023
1 parent 6603816 commit 2b87ce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ItemValue, QuestionRankingModel } from "survey-core";
import { DragDropRankingChoices } from "./ranking-choices";

export class DragDropRankingChooseChoices extends DragDropRankingChoices {
export class DragDropRankingSelectToRank extends DragDropRankingChoices {
protected findDropTargetNodeByDragOverNode(
dragOverNode: HTMLElement
): HTMLElement {
Expand Down
4 changes: 2 additions & 2 deletions src/question_ranking.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ISurveyImpl } from "./base-interfaces";
import { DragDropRankingChoices } from "./dragdrop/ranking-choices";
import { DragDropRankingChooseChoices } from "./dragdrop/ranking-choose-choices";
import { DragDropRankingSelectToRank } from "./dragdrop/ranking-select-to-rank";
import { ItemValue } from "./itemvalue";
import { property, Serializer } from "./jsonobject";
import { QuestionFactory } from "./questionfactory";
Expand Down Expand Up @@ -223,7 +223,7 @@ export class QuestionRankingModel extends QuestionCheckboxModel {
super.endLoadingFromJson();

if (this.selectToRank) {
this.dragDropRankingChoices = new DragDropRankingChooseChoices(this.survey, null, this.longTap);
this.dragDropRankingChoices = new DragDropRankingSelectToRank(this.survey, null, this.longTap);
} else {
this.dragDropRankingChoices = new DragDropRankingChoices(this.survey, null, this.longTap);
}
Expand Down

0 comments on commit 2b87ce2

Please sign in to comment.