Merge pull request woocommerce/woocommerce-admin#1550 from woocommerce/fix/autocompleter-debounce

Autocompleter: increase debounce
This commit is contained in:
Paul Sealock 2019-02-14 14:47:02 +13:00 committed by GitHub
commit a60d977d5c
2 changed files with 2 additions and 1 deletions

View File

@ -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();
}

View File

@ -20,6 +20,7 @@ import Flag from '../../flag';
export default {
name: 'countries',
className: 'woocommerce-search__country-result',
isDebounced: true,
options() {
return wcSettings.dataEndpoints.countries || [];
},