From 09e7e3529782382ab725ee3edc142ee1933582dd Mon Sep 17 00:00:00 2001 From: liuboaibc Date: Mon, 25 Jan 2021 10:21:57 +0800 Subject: [PATCH] update doc menu event Signed-off-by: liuboaibc --- layouts/docs/single.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 26ef9226a..eb1e62105 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -240,6 +240,10 @@ height="0" width="0" style="display:none;visibility:hidden"> } }) + sectionMenu.on('mouseleave', function() { + sectionMenu.hide(); + }) + $(document).on("click", function(){ sectionMenu.hide() });