Merge pull request woocommerce/woocommerce-admin#1550 from woocommerce/fix/autocompleter-debounce
Autocompleter: increase debounce
This commit is contained in:
commit
a60d977d5c
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ import Flag from '../../flag';
|
|||
export default {
|
||||
name: 'countries',
|
||||
className: 'woocommerce-search__country-result',
|
||||
isDebounced: true,
|
||||
options() {
|
||||
return wcSettings.dataEndpoints.countries || [];
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue