Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1550 from woocommerce/fix/autocompleter-debounce
Browse files Browse the repository at this point in the history
Autocompleter: increase debounce
  • Loading branch information
psealock authored Feb 14, 2019
2 parents 2a0d8aa + 461f3b4 commit 3ab71c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/search/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Autocomplete extends Component {
this.reset = this.reset.bind( this );
this.search = this.search.bind( this );
this.handleKeyDown = this.handleKeyDown.bind( this );
this.debouncedLoadOptions = debounce( this.loadOptions, 250 );
this.debouncedLoadOptions = debounce( this.loadOptions, 400 );

this.state = this.constructor.getInitialState();
}
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/search/autocompleters/countries.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import Flag from '../../flag';
export default {
name: 'countries',
className: 'woocommerce-search__country-result',
isDebounced: true,
options() {
return wcSettings.dataEndpoints.countries || [];
},
Expand Down

0 comments on commit 3ab71c0

Please sign in to comment.