Skip to content

Commit

Permalink
work for the #9419 (#9514)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov authored Feb 25, 2025
1 parent 52d8a67 commit c350579
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/survey-core/src/dragdrop/ranking-choices.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ItemValue } from "../itemvalue";
import { DragDropChoices } from "./choices";
import { CssClassBuilder } from "../utils/cssClassBuilder";
import { IsMobile } from "../utils/devices";
import { IsMobile, IsTouch } from "../utils/devices";
import { DomDocumentHelper } from "../global_variables_utils";
import { QuestionRankingModel } from "../question_ranking";
export class DragDropRankingChoices extends DragDropChoices {
Expand Down Expand Up @@ -153,6 +153,10 @@ export class DragDropRankingChoices extends DragDropChoices {

const node = this.domAdapter.draggedElementShortcut.querySelector<HTMLElement>(".sv-ranking-item");
node.style.cursor = "not-allowed";

if (IsTouch) {
this.parentElement.updateRankingChoices(true);
}
};

protected doDrop(): any {
Expand Down

0 comments on commit c350579

Please sign in to comment.