FIX: Use mouse down event when cancelling search (#14788)

FIX: Use mouse down event when cancelling search (#14788)

diff --git a/app/assets/javascripts/discourse/app/widgets/search-menu.js b/app/assets/javascripts/discourse/app/widgets/search-menu.js
index 846d2e2..82f7855 100644
--- a/app/assets/javascripts/discourse/app/widgets/search-menu.js
+++ b/app/assets/javascripts/discourse/app/widgets/search-menu.js
@@ -316,7 +316,7 @@ export default createWidget("search-menu", {
     });
   },
 
-  clickOutside() {
+  mouseDownOutside() {
     this.sendWidgetAction("toggleSearchMenu");
   },
 

GitHub sha: 80c6f6a48ba4330d1f85ed002372faf40c738ee4

This commit appears in #14788 which was approved by CvX. It was merged by pmusaraj.