UX: workaround chrome autocomplete bug in search

UX: workaround chrome autocomplete bug in search

This works around issue mentioned in 918a0ea3

diff --git a/app/assets/javascripts/discourse/widgets/search-menu-controls.js.es6 b/app/assets/javascripts/discourse/widgets/search-menu-controls.js.es6
index b9128fb..c546c59 100644
--- a/app/assets/javascripts/discourse/widgets/search-menu-controls.js.es6
+++ b/app/assets/javascripts/discourse/widgets/search-menu-controls.js.es6
@@ -19,7 +19,7 @@ createWidget("search-term", {
     return {
       type: "text",
       value: attrs.value || "",
-      autocomplete: "off",
+      autocomplete: "discourse",
       placeholder: attrs.contextEnabled ? "" : I18n.t("search.title")
     };
   },

GitHub sha: b93460cb

1 Like