Просмотр исходного кода

Add focus on the alert for keyboard navigation

Amauri CHAMPEAUX 4 лет назад
Родитель
Сommit
279523f18d
1 измененных файлов с 4 добавлено и 0 удалено
  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 () {