Ben Bieler
Ben Bieler

Reputation: 1598

Turn react-select autocomplete on after a few keystrokes

Is there a way to only turn the autocomplete on after typing lets say three keystrokes? I am currently using the react library react-select.

Upvotes: 1

Views: 1932

Answers (1)

An Nguyen
An Nguyen

Reputation: 1478

I would implement to execute asynchronous event after (around) 300ms rather than counting each keystrokes. You can have a look at debounce and persist in here

Upvotes: 1

Related Questions