From: Nicolas Coden Date: Fri, 2 Nov 2018 11:34:42 +0000 (+0100) Subject: fix: revert inadvertent substitution of Dropdown "aria-labelledby" attribute X-Git-Tag: v6.6.0~3^2~67^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11573%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: revert inadvertent substitution of Dropdown "aria-labelledby" attribute --- diff --git a/js/foundation.dropdown.js b/js/foundation.dropdown.js index d12f02a61..e44fedd3f 100644 --- a/js/foundation.dropdown.js +++ b/js/foundation.dropdown.js @@ -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'));