Skip to content

Commit 09184e6

Browse files
matheuszychthojou
authored andcommitted
Fixes weird behavior when multi‑selecting in matching questions
1 parent c1cd418 commit 09184e6

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

components/ILIAS/TestQuestionPool/resources/js/dist/matching.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/ILIAS/TestQuestionPool/resources/js/src/makeDraggable.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ export default function makeDraggable(
9191
* @returns {void}
9292
*/
9393
function startMoving(target) {
94+
if (!target.draggable) {
95+
return;
96+
}
97+
9498
draggedElement = target;
9599
draggedElement.style.opacity = 0.5;
96100

0 commit comments

Comments
 (0)