mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 22:15:23 +01:00
Debounce autosuggestions (#3836)
* Debounce autosuggestions * Remove duplicate import
This commit is contained in:
parent
05e4728de7
commit
aebebdc5d1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue