]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wait #6927
authorsoufiane <soufiane@cubedesigners.com>
Thu, 23 May 2024 08:53:15 +0000 (10:53 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 23 May 2024 08:53:15 +0000 (10:53 +0200)
js/quiz.screens.js

index 40b8413930d3dfee93ecfd12268d8e43523096e4..0f65edcf91e6936febeed3344c9ba0eee634e9b0 100644 (file)
@@ -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)
             })
         }
     }