From: soufiane Date: Wed, 22 May 2024 15:11:46 +0000 (+0200) Subject: wip #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e4056fb7c5499a451ac1c1ee9dcd51b33a35f718;p=fluidbook-toolbox-quiz.git wip #6927 --- diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index e2c9bf6..44bb635 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -27,7 +27,7 @@ QuizAccessibility.prototype = { $('[for="toggleDropdown"]:focus').get(0).click(); } if ($this.quiz.utils.isEnabled(el)) { - el.get(0).click((e) => { return false; }); + el.get(0).click(); return true; } } diff --git a/js/quiz.draganddrop.js b/js/quiz.draganddrop.js index b85bb4d..e64356f 100644 --- a/js/quiz.draganddrop.js +++ b/js/quiz.draganddrop.js @@ -15,7 +15,8 @@ QuizDragAndDrop.prototype = { gsap.registerPlugin(InertiaPlugin); gsap.registerPlugin(Draggable); - $(document).on("click", ".move-card", function () { + $(document).on("click", ".move-card", function (e) { + e.preventDefault() let move = $(this).attr("aria-keyshortcuts"), zone = false; if (move === "ARROWLEFT") {