diff options
-rw-r--r-- | app/javascript/mastodon/features/compose/components/compose_form.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js index 621ec43ab..8da3f8046 100644 --- a/app/javascript/mastodon/features/compose/components/compose_form.js +++ b/app/javascript/mastodon/features/compose/components/compose_form.js @@ -74,9 +74,9 @@ class ComposeForm extends ImmutablePureComponent { this.props.onClearSuggestions(); } - onSuggestionsFetchRequested = (token) => { + onSuggestionsFetchRequested = debounce((token) => { this.props.onFetchSuggestions(token); - } + }, 500, { trailing: true }) onSuggestionSelected = (tokenStart, token, value) => { this._restoreCaret = null; |