Browse Source

Require at least 2 characters before showing autosuggestions (#5065)

master
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
9c8aad612e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/components/autosuggest_textarea.js

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

@ -20,7 +20,7 @@ const textAtCursorMatchesToken = (str, caretPosition) => {
word = str.slice(left, right + caretPosition);
}
if (!word || word.trim().length < 2 || ['@', ':'].indexOf(word[0]) === -1) {
if (!word || word.trim().length < 3 || ['@', ':'].indexOf(word[0]) === -1) {
return [null, null];
}

Loading…
Cancel
Save