Skip to content

Commit 8f4d55b

Browse files
authored
Fix: Ensure helpfulSearchDiv hides consistently on context menu (sugarlabs#4276)
1 parent 23206c9 commit 8f4d55b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/activity.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,10 @@ class Activity {
513513
(event) => {
514514
event.preventDefault();
515515
event.stopPropagation();
516-
if (this.beginnerMode) return;
516+
if (this.beginnerMode) return;
517+
if (this.isHelpfulSearchWidgetOn) {
518+
this._hideHelpfulSearchWidget();
519+
}
517520
if (!this.blocks.isCoordinateOnBlock(event.clientX, event.clientY) &&
518521
event.target.id === "myCanvas") {
519522
this._displayHelpfulWheel(event);

0 commit comments

Comments
 (0)