From bff4b3194b153ef7aa83cc1832632bda9792d4d4 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 23 May 2024 10:46:04 +0200 Subject: [PATCH] wait #6927 --- js/quiz.accessibility.js | 3 ++- js/quiz.screens.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index b39ef68..11c3200 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -24,7 +24,8 @@ QuizAccessibility.prototype = { if (key === 'ENTER') { let el = $(':focus').find('[aria-keyshortcuts]') if($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]').length > 0) { - $('[for="toggleDropdown"]:focus').get(0).click(); + console.log($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]')) + //$('[for="toggleDropdown"]:focus').get(0).click(); } if ($this.quiz.utils.isEnabled(el)) { el.get(0).click((e) => { return false; }); diff --git a/js/quiz.screens.js b/js/quiz.screens.js index fe938f8..3e9481d 100644 --- a/js/quiz.screens.js +++ b/js/quiz.screens.js @@ -93,8 +93,8 @@ QuizScreens.prototype = { } }); - $(".list-item").removeAttr("tabindex") if(this.getActiveScreenType() === "multiple") { + $(".list-item").removeAttr("tabindex") $(".active-screen .list-item").each(function(index) { $(this).attr('tabindex', index++) }) -- 2.39.5