-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.10, 4.0.4
This issue seems to affect drag-drop into text questions. It is very intermittent, and seemed to be happening on Mobile Safari. We are not sure if this can be reproduced on other browser/device combinations.
The symptom is that after answering part of the question (e.g. questions-L192-22J-q5v3-20221028-0925 (1).xml), the student could then no longer move any of the drag items, and so could not complete the question. (This was reported to us by more than one student in assessed tests). When I went to review their attempt, there was an error in the JavaScript console:
Uncaught TypeError: classes is undefined
|
getClassnameNumericSuffix https://HIDDEN/lib/requirejs.php/1663235109/core/first.js:1979
|
getGroup https://HIDDEN/lib/requirejs.php/1663235109/core/first.js:1979
|
getDragClone https://HIDDEN/lib/requirejs.php/1663235109/core/first.js:1979
|
positionDrags https://HIDDEN/lib/requirejs.php/1663235109/core/first.js:1979
|
jQuery 2
|
positionDrags https://HIDDEN/lib/requirejs.php/1663235109/core/first.js:1979
|
DragDropToTextQuestion https://HIDDEN/lib/requirejs.php/1663235109/core/first.js:1979
|
init https://HIDDEN/lib/requirejs.php/1663235109/core/first.js:1979
|
<anonymous> https://HIDDEN/mod/quiz/review.php?attempt=5603746:1189
|
execCb https://HIDDEN/lib/javascript.php/1663235109/lib/requirejs/require.min.js:5
|
check https://HIDDEN/lib/javascript.php/1663235109/lib/requirejs/require.min.js:5
|
enable https://HIDDEN/lib/javascript.php/1663235109/lib/requirejs/require.min.js:5
|
init https://HIDDEN/lib/javascript.php/1663235109/lib/requirejs/require.min.js:5
|
o https://HIDDEN/lib/javascript.php/1663235109/lib/requirejs/require.min.js:5
|
first.js:1979:11117
|
That it turn was caused by two different drop zones both thinking that they contained the same (single use) drag item, that is, when the question was displayed, the hidden inputs were:
...
|
<input type="hidden" id="q7083725_6_p4" class="placeinput place4 group1" name="q7083725:6_p4" value="3"> |
<input type="hidden" id="q7083725_6_p5" class="placeinput place5 group1" name="q7083725:6_p5" value="6"> |
<input type="hidden" id="q7083725_6_p6" class="placeinput place6 group1" name="q7083725:6_p6" value="6"> |
<input type="hidden" id="q7083725_6_p7" class="placeinput place7 group2" name="q7083725:6_p7" value="7"> |
...
|
Note the two with value="6" - that was a choice that could only be used once. The question is, how did it get like that? I could not work it out, but I was able to reproduce it, but only on an iphone, so it might be touch-screen only, or that might be a read-herring.
This seems related to the fact that, on an iphone, in some cases the drop zones were jumping from line to line (because the line-wrap was changing) whenever you started or stopped a drag. That seems to be what causes this.