Skip to content

Commit 014ddc8

Browse files
committed
Fix #138 sortableList randomized order not working
1 parent 7a00fd8 commit 014ddc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sortablejs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function init(Survey) {
9191
};
9292
var getChoicesNotInResults = function () {
9393
var res = [];
94-
question.activeChoices.forEach(function (choice) {
94+
question.visibleChoices.forEach(function (choice) {
9595
if (!hasValueInResults(choice.value)) {
9696
res.push(choice);
9797
}
@@ -104,7 +104,7 @@ function init(Survey) {
104104
if (!Array.isArray(val)) return res;
105105
for (var i = 0; i < val.length; i++) {
106106
var item = Survey.ItemValue.getItemByValue(
107-
question.activeChoices,
107+
question.visibleChoices,
108108
val[i]
109109
);
110110
if (!!item) {

0 commit comments

Comments
 (0)