From 8f4d55bec84e21745e2ac08780c5fb1ac22504e9 Mon Sep 17 00:00:00 2001 From: Nikhil <154296996+BeNikk@users.noreply.github.com> Date: Wed, 15 Jan 2025 17:27:23 +0530 Subject: [PATCH] Fix: Ensure helpfulSearchDiv hides consistently on context menu (#4276) --- js/activity.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/activity.js b/js/activity.js index 9dc416b90b..908c2d30c7 100644 --- a/js/activity.js +++ b/js/activity.js @@ -513,7 +513,10 @@ class Activity { (event) => { event.preventDefault(); event.stopPropagation(); - if (this.beginnerMode) return; + if (this.beginnerMode) return; + if (this.isHelpfulSearchWidgetOn) { + this._hideHelpfulSearchWidget(); + } if (!this.blocks.isCoordinateOnBlock(event.clientX, event.clientY) && event.target.id === "myCanvas") { this._displayHelpfulWheel(event);