Browse Source

Add focus on the alert for keyboard navigation

Amauri CHAMPEAUX 4 năm trước cách đây
mục cha
commit
279523f18d
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 () {