Skip to content

Commit

Permalink
fix: revert inadvertent substitution of Dropdown "aria-labelledby" at…
Browse files Browse the repository at this point in the history
…tribute
  • Loading branch information
ncoden committed Nov 2, 2018
1 parent 5ddb04b commit adce391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/foundation.dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit adce391

Please sign in to comment.