Skip to content
Snippets Groups Projects
Commit aebebdc5 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Debounce autosuggestions (#3836)

* Debounce autosuggestions

* Remove duplicate import
parent 05e4728d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment