From d48177e1fcf9ac9a220ebc4ef1f9ccf8488d3638 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 23 May 2024 11:34:12 +0200 Subject: [PATCH] wait #6927 --- js/quiz.accessibility.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index 11c3200..0c76aa6 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -23,9 +23,8 @@ QuizAccessibility.prototype = { if (key === 'ENTER') { let el = $(':focus').find('[aria-keyshortcuts]') - if($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]').length > 0) { - console.log($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]')) - //$('[for="toggleDropdown"]:focus').get(0).click(); + if($('.active-screen [for="toggleDropdown"]').length > 0) { + $('[for="toggleDropdown"]:focus').get(0).click(); } if ($this.quiz.utils.isEnabled(el)) { el.get(0).click((e) => { return false; }); -- 2.39.5