From adce391073e9d52ec538d6db6c111cbf1d904489 Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Fri, 2 Nov 2018 12:34:42 +0100 Subject: [PATCH] fix: revert inadvertent substitution of Dropdown "aria-labelledby" attribute --- js/foundation.dropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')); -- 2.47.2