Skip to content

Commit

Permalink
Merge pull request JedWatson#2266 from jnachtigall/docs_on_disabling_…
Browse files Browse the repository at this point in the history
…client_side_filtering

Add explicit docs on how to disable client side filtering
  • Loading branch information
JedWatson authored Jan 9, 2018
2 parents 2d08546 + e46b40c commit 851d94b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,14 @@ const getOptions = (input, callback) => {

#### Note about filtering async options

The `Async` component doesn't change the default behaviour for filtering the options based on user input, but if you're already filtering the options server-side you may want to customise or disable this feature (see [filtering options](#filtering-options) below)
The `Async` component doesn't change the default behaviour for filtering the options based on user input, but if you're already filtering the options server-side you may want to customise or disable this feature (see [filtering options](#filtering-options) below). For example, if you would like to completely disable client side filtering, you can do so with:

```js
filterOptions={(options, filter, currentValues) => {
// Do no filtering, just return all options
return options;
}}
```

### Async options with Promises

Expand Down

0 comments on commit 851d94b

Please sign in to comment.