mirror of
https://github.com/danbulant/api_docs
synced 2026-05-19 04:08:40 +00:00
Fix bug where clicking link in ToC wouldn't hide ToC on mobile
This commit is contained in:
parent
5d0bef6c87
commit
4aae61a1dc
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
|||
};
|
||||
|
||||
var closeToc = function() {
|
||||
$(".tocify-wrapper").removeClass('open');
|
||||
$(".toc-wrapper").removeClass('open');
|
||||
$("#nav-button").removeClass('open');
|
||||
};
|
||||
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
return false;
|
||||
});
|
||||
$(".page-wrapper").click(closeToc);
|
||||
$(".tocify-item").click(closeToc);
|
||||
$(".toc-link").click(closeToc);
|
||||
|
||||
// reload immediately after scrolling on toc click
|
||||
$toc.find(tocLinkSelector).click(function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue