about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-04-24 20:34:33 +0200
committerThibG <thib@sitedethib.com>2019-04-26 22:38:03 +0200
commitaa1832ac4d53b2f650af1aff49de57039e590601 (patch)
treec697a1f5f9207ee0f2f0940bc7d68b53fb3201ae /app/javascript
parentfddd8251ddec420286dcca06c0be2bea457e4799 (diff)
Hide suggestions by default
They will be enabled if the input has focus
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/flavours/glitch/components/autosuggest_input.js2
-rw-r--r--app/javascript/flavours/glitch/components/autosuggest_textarea.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/components/autosuggest_input.js b/app/javascript/flavours/glitch/components/autosuggest_input.js
index 4797767b0..ca0dcb64f 100644
--- a/app/javascript/flavours/glitch/components/autosuggest_input.js
+++ b/app/javascript/flavours/glitch/components/autosuggest_input.js
@@ -59,7 +59,7 @@ export default class AutosuggestInput extends ImmutablePureComponent {
   };
 
   state = {
-    suggestionsHidden: false,
+    suggestionsHidden: true,
     focused: false,
     selectedSuggestion: 0,
     lastToken: null,
diff --git a/app/javascript/flavours/glitch/components/autosuggest_textarea.js b/app/javascript/flavours/glitch/components/autosuggest_textarea.js
index 2be29feb4..e1ded2b3a 100644
--- a/app/javascript/flavours/glitch/components/autosuggest_textarea.js
+++ b/app/javascript/flavours/glitch/components/autosuggest_textarea.js
@@ -55,7 +55,7 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
   };
 
   state = {
-    suggestionsHidden: false,
+    suggestionsHidden: true,
     focused: false,
     selectedSuggestion: 0,
     lastToken: null,