]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: revert inadvertent substitution of Dropdown "aria-labelledby" attribute 11573/head
authorNicolas Coden <nicolas@ncoden.fr>
Fri, 2 Nov 2018 11:34:42 +0000 (12:34 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Fri, 2 Nov 2018 11:34:42 +0000 (12:34 +0100)
js/foundation.dropdown.js

index d12f02a61d34e6d051b54b9e9ee32412c75274a8..e44fedd3f21ac7cdf2131d2ff284b7a912bdcb93 100644 (file)
@@ -68,8 +68,8 @@ class Dropdown extends Positionable {
       this.$parent = null;
     }
 
-    // Set [aria-describedby] on the Dropdown if it is not set
-    if (typeof this.$element.attr('aria-describedby') === 'undefined') {
+    // Set [aria-labelledby] on the Dropdown if it is not set
+    if (typeof this.$element.attr('aria-labelledby') === 'undefined') {
       // Get the anchor ID or create one
       if (typeof this.$currentAnchor.attr('id') === 'undefined') {
         this.$currentAnchor.attr('id', GetYoDigits(6, 'dd-anchor'));