From f1e46e51424cb76d51837d5d3c1fe8236e3f70bf Mon Sep 17 00:00:00 2001 From: Chris Oyler Date: Fri, 8 Jan 2016 10:51:49 -0800 Subject: [PATCH] fixes pr issue where tab panels were not getting appropriate ARIA attributes on init --- js/foundation.tabs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/foundation.tabs.js b/js/foundation.tabs.js index 7c49fef0c..ce030d6f9 100644 --- a/js/foundation.tabs.js +++ b/js/foundation.tabs.js @@ -90,7 +90,7 @@ isActive = $elem.hasClass('is-active'), hash = $link[0].hash.slice(1), linkId = hash + '-label', - $tabContent = $(hash); + $tabContent = $('#' + hash); $elem.attr({'role': 'presentation'}); @@ -211,7 +211,6 @@ var $tabLink = $target.find('[role="tab"]'), hash = $tabLink[0].hash, $targetContent = $(hash), - $oldTab = this.$element.find('.' + this.options.linkClass + '.is-active') .removeClass('is-active').find('[role="tab"]') .attr({'aria-selected': 'false'}).attr('aria-controls'); -- 2.47.2