From: soufiane Date: Thu, 23 May 2024 08:53:15 +0000 (+0200) Subject: wait #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8d1fc327f9900dbecbb8d61534ce9309022a068d;p=fluidbook-toolbox-quiz.git wait #6927 --- diff --git a/js/quiz.screens.js b/js/quiz.screens.js index 40b8413..0f65edc 100644 --- a/js/quiz.screens.js +++ b/js/quiz.screens.js @@ -358,8 +358,10 @@ QuizScreens.prototype = { updateTabindexToQuestionMultiple: function() { if(this.getActiveScreenType() === "multiple") { $(".list-item").removeAttr("tabindex") + let counter = 0; this.activeScreen.find(".list-item").each(function(index) { - $(this).attr('tabindex', index++) + counter++ + $(this).attr('tabindex', counter) }) } }