diff --git a/js/activity.js b/js/activity.js index 1c0de1de6b..1abc6a5dfc 100644 --- a/js/activity.js +++ b/js/activity.js @@ -479,12 +479,14 @@ class Activity { if (docById("helpfulWheelDiv").style.display !== "none") { docById("helpfulWheelDiv").style.display = "none"; } - if (docById("helpfulSearchDiv").style.display !== "none" && e.target.id !== "helpfulSearch") { + if (docById("helpfulSearchDiv").style.display !== "none" && !docById("helpfulSearchDiv").contains(e.target) && e.target.id !== "helpfulSearch") { docById("helpfulSearchDiv").style.display = "none"; } that.__tick(); } + document.addEventListener("click", this._hideHelpfulSearchWidget); + /* * Sets up right click functionality opening the context menus * (if block is right clicked)