Browse Source

Hide suggestions by default

They will be enabled if the input has focus
closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
aa1832ac4d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/components/autosuggest_input.js
  2. +1
    -1
      app/javascript/flavours/glitch/components/autosuggest_textarea.js

+ 1
- 1
app/javascript/flavours/glitch/components/autosuggest_input.js View File

@ -59,7 +59,7 @@ export default class AutosuggestInput extends ImmutablePureComponent {
}; };
state = { state = {
suggestionsHidden: false,
suggestionsHidden: true,
focused: false, focused: false,
selectedSuggestion: 0, selectedSuggestion: 0,
lastToken: null, lastToken: null,

+ 1
- 1
app/javascript/flavours/glitch/components/autosuggest_textarea.js View File

@ -55,7 +55,7 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
}; };
state = { state = {
suggestionsHidden: false,
suggestionsHidden: true,
focused: false, focused: false,
selectedSuggestion: 0, selectedSuggestion: 0,
lastToken: null, lastToken: null,

Loading…
Cancel
Save