From: soufiane Date: Wed, 22 May 2024 15:56:28 +0000 (+0200) Subject: wait #6927 @12:00 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3b60f57f2aeea63ca6efb7f08c78e333a0a068a5;p=fluidbook-toolbox-quiz.git wait #6927 @12:00 --- diff --git a/js/quiz.match.js b/js/quiz.match.js index 59471e6..7b21b02 100644 --- a/js/quiz.match.js +++ b/js/quiz.match.js @@ -12,7 +12,7 @@ function QuizMatch(quiz) { QuizMatch.prototype = { init: function () { const $this = this - $(document).on("click", ".move-slide", function () { + $(document).on("click", ".move-slide", function (e) { let move = $(this).attr("aria-keyshortcuts") if (move === "ARROWLEFT") { @@ -22,7 +22,8 @@ QuizMatch.prototype = { } }) - $(document).on("click", ".confirmMatch", function () { + $(document).on("click", ".confirmMatch", function (e) { + e.preventDefault() $this.confirmTheMatch() }); },