Skip to content

Commit 4aae61a

Browse files
committed
Fix bug where clicking link in ToC wouldn't hide ToC on mobile
1 parent 5d0bef6 commit 4aae61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/javascripts/app/_toc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
};
1818

1919
var closeToc = function() {
20-
$(".tocify-wrapper").removeClass('open');
20+
$(".toc-wrapper").removeClass('open');
2121
$("#nav-button").removeClass('open');
2222
};
2323

@@ -83,7 +83,7 @@
8383
return false;
8484
});
8585
$(".page-wrapper").click(closeToc);
86-
$(".tocify-item").click(closeToc);
86+
$(".toc-link").click(closeToc);
8787

8888
// reload immediately after scrolling on toc click
8989
$toc.find(tocLinkSelector).click(function() {

0 commit comments

Comments
 (0)