FEATURE: add autocomplete discourse on full page search

FEATURE: add autocomplete discourse on full page search

This teaches chrome not to try autocompleting it.

diff --git a/app/assets/javascripts/discourse/components/search-text-field.js.es6 b/app/assets/javascripts/discourse/components/search-text-field.js.es6
index cf442f8..e2629bd 100644
--- a/app/assets/javascripts/discourse/components/search-text-field.js.es6
+++ b/app/assets/javascripts/discourse/components/search-text-field.js.es6
@@ -4,6 +4,8 @@ import TextField from "discourse/components/text-field";
 import { applySearchAutocomplete } from "discourse/lib/search";
 
 export default TextField.extend({
+  autocomplete: "discourse",
+
   @computed("searchService.searchContextEnabled")
   placeholder(searchContextEnabled) {
     return searchContextEnabled ? "" : I18n.t("search.full_page_title");

GitHub sha: 077dcc06

1 Like