From 933e823fc545a58107a5d3d344712e26e8ecac34 Mon Sep 17 00:00:00 2001 From: soufiane Date: Wed, 22 May 2024 17:31:40 +0200 Subject: [PATCH] wip #6927 --- js/quiz.accessibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index 6ece534..b39ef68 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -23,7 +23,7 @@ QuizAccessibility.prototype = { if (key === 'ENTER') { let el = $(':focus').find('[aria-keyshortcuts]') - if($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]')) { + if($this.quiz.screens.getActiveScreen().find('[for="toggleDropdown"]').length > 0) { $('[for="toggleDropdown"]:focus').get(0).click(); } if ($this.quiz.utils.isEnabled(el)) { -- 2.39.5