Browse Source

Fix missing aria pressed

Amauri CHAMPEAUX 3 năm trước cách đây
mục cha
commit
c0728e0d65
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      tarteaucitron.js

+ 3 - 0
tarteaucitron.js

@@ -1040,6 +1040,9 @@ var tarteaucitron = {
                 tarteaucitron.userInterface.addClass(key + 'Line', 'tarteaucitronIsDenied');
                 tarteaucitron.userInterface.addClass(key + 'Line', 'tarteaucitronIsDenied');
                 document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'false');
                 document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'false');
                 document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'true');
                 document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'true');
+            } else {
+                document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'false');
+                document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'false');
             }
             }
 
 
             // check if all services are allowed
             // check if all services are allowed