]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
only search for the target tab content within the existing tab content element, resol... 8055/head
authorVic McGlaughlin <vic.mcglaughlin@gmail.com>
Tue, 2 Feb 2016 16:33:29 +0000 (11:33 -0500)
committerVic McGlaughlin <vic.mcglaughlin@gmail.com>
Tue, 2 Feb 2016 16:36:42 +0000 (11:36 -0500)
js/foundation.tabs.js

index 3a1a06fcf80c18b2b2a0d34e01de815a40fb8e24..5bc89dbbfd53694b70d83b3138862a40400b5180 100644 (file)
   Tabs.prototype._handleTabChange = function($target){
     var $tabLink = $target.find('[role="tab"]'),
         hash = $tabLink[0].hash,
-        $targetContent = $(hash),
+        $targetContent = this.$tabContent.find(hash),
         $oldTab = this.$element.find('.' + this.options.linkClass + '.is-active')
                   .removeClass('is-active').find('[role="tab"]')
                   .attr({'aria-selected': 'false'}).attr('aria-controls');