Browse Source

Add focus on the alert for keyboard navigation

Amauri CHAMPEAUX 4 years ago
parent
commit
279523f18d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tarteaucitron.js

+ 4 - 0
tarteaucitron.js

@@ -1234,6 +1234,10 @@ var tarteaucitron = {
             }
             //end ie compatibility
 
+            if (document.getElementById('tarteaucitronPersonalize2') !== null) {
+                document.getElementById('tarteaucitronPersonalize2').focus();
+            }
+
             window.dispatchEvent(tacOpenAlertEvent);
         },
         "closeAlert": function () {