From: soufiane Date: Thu, 23 May 2024 08:40:42 +0000 (+0200) Subject: wait #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3578fbca3abeb5f343155103aac0eeb711211856;p=fluidbook-toolbox-quiz.git wait #6927 --- diff --git a/js/quiz.screens.js b/js/quiz.screens.js index fcf7c39..cf7336e 100644 --- a/js/quiz.screens.js +++ b/js/quiz.screens.js @@ -92,6 +92,13 @@ QuizScreens.prototype = { $this.nextQuestion(); } }); + + $(".list-item").removeAttr("tabindex") + if(this.getActiveScreenType() === "multiple") { + this.activeScreen.find(".list-item").each(function(index) { + $(this).attr('tabindex', index++) + }) + } }, instantReview: function (review) { diff --git a/views/screens/question_multiple.blade.php b/views/screens/question_multiple.blade.php index ade6646..95894b6 100644 --- a/views/screens/question_multiple.blade.php +++ b/views/screens/question_multiple.blade.php @@ -8,7 +8,7 @@ @php($tabindex = 0) @foreach($question['answers'] as $key => $answer) @php($tabindex++) -
  • +