From 3b60f57f2aeea63ca6efb7f08c78e333a0a068a5 Mon Sep 17 00:00:00 2001 From: soufiane Date: Wed, 22 May 2024 17:56:28 +0200 Subject: [PATCH] wait #6927 @12:00 --- js/quiz.match.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() }); }, -- 2.39.5