From aa1832ac4d53b2f650af1aff49de57039e590601 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Wed, 24 Apr 2019 20:34:33 +0200 Subject: [PATCH] Hide suggestions by default They will be enabled if the input has focus --- app/javascript/flavours/glitch/components/autosuggest_input.js | 2 +- .../flavours/glitch/components/autosuggest_textarea.js | 2 +- 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 4797767b0c6..ca0dcb64fb2 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 2be29feb49a..e1ded2b3ac3 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,