From 4bf635547720b4290d42534a77a7a5e2d8aa1da9 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 4 Sep 2018 23:02:34 +0800 Subject: [PATCH] fix bug of toc --- source/js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/js/app.js b/source/js/app.js index b784583..7106e7e 100755 --- a/source/js/app.js +++ b/source/js/app.js @@ -132,10 +132,10 @@ var customSearch; function setTocToggle() { const $toc = $('.toc-wrapper'); if ($toc.length === 0) return; - $toc.click((e) => { - e.stopPropagation(); - $toc.addClass('active'); - }); + // $toc.click((e) => { + // e.stopPropagation(); + // $toc.addClass('active'); + // }); $(document).click(() => $toc.removeClass('active')); $toc.on('click', 'a', (e) => {