Skip to content

Commit c6d37c4

Browse files
committed
fix: close the active Tab when going back to a "tab-less" history state
See foundation#11477 (comment)
1 parent 012db10 commit c6d37c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/foundation.tabs.js

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ class Tabs extends Plugin {
118118
if ($anchor && $anchor.length && $link && $link.length) {
119119
this.selectTab($anchor, true);
120120
}
121+
// Otherwise, collapse everything
122+
else {
123+
this._collapse();
124+
}
121125

122126
// Roll up a little to show the titles
123127
if (this.options.deepLinkSmudge) {

0 commit comments

Comments
 (0)