Skip to content

Commit

Permalink
hide option for advance mode search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
subhas-pramanik-09 committed Dec 9, 2024
1 parent ec1ecdc commit 9a47f4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a47f4d

Please sign in to comment.