]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6927
authorsoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 13:55:16 +0000 (15:55 +0200)
committersoufiane <soufiane@cubedesigners.com>
Wed, 22 May 2024 13:55:16 +0000 (15:55 +0200)
js/quiz.screens.js
views/screens/question_country.blade.php

index 16e3166fb84f5ec97d64e8a07a2a8a588f886da7..6aba856710231aeb9afa534849116e98651bf55f 100644 (file)
@@ -53,7 +53,8 @@ QuizScreens.prototype = {
         });
 
         // Cliquer sur le bouton suivant
-        $(document).on("click", ".active-screen.next .action", function () {
+        $(document).on("click", ".active-screen.next .action", function (e) {
+            e.preventDefault();
 
             if ($this.getActiveScreenType() === 'email') {
                 if (!$this.validateEmail($this.activeScreen.find("input").val())) {
index eb7ca0db48a69df2a030644eb91ccdc7e7db46f6..205e62b49c1615fda6c9f3db56f479ea259c09e0 100644 (file)
@@ -5,7 +5,7 @@
     <div class="screen question-text question-country">
         <form id="form-{{$position}}">
             <div class="form-group">
-                <label for="toggleDropdown" tabindex="1">
+                <label for="toggleDropdown" tabindex="0">
                     <input class="answer-text" id="toggleDropdown" name="answer"
                            placeholder="{{$question['placeholder']?:$__('Choose a country')}}" type="text" tabindex="-1"/>
                     <svg class="arrow" xmlns="http://www.w3.org/2000/svg" width="18.828" height="10.414"