From: Nicolas Coden Date: Sun, 9 Sep 2018 16:33:17 +0000 (+0200) Subject: fix: close the active Tab when going back to a "tab-less" history state X-Git-Tag: v6.6.0~3^2~96^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6d37c42e;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: close the active Tab when going back to a "tab-less" history state See https://github.com/zurb/foundation-sites/pull/11477#issuecomment-419678146 --- diff --git a/js/foundation.tabs.js b/js/foundation.tabs.js index 9b71069cb..d1d2a3f6a 100644 --- a/js/foundation.tabs.js +++ b/js/foundation.tabs.js @@ -118,6 +118,10 @@ class Tabs extends Plugin { if ($anchor && $anchor.length && $link && $link.length) { this.selectTab($anchor, true); } + // Otherwise, collapse everything + else { + this._collapse(); + } // Roll up a little to show the titles if (this.options.deepLinkSmudge) {