Skip to content

Commit

Permalink
Add explicit docs on how to disable client side filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
jnachtigall authored Jan 8, 2018
1 parent 2d08546 commit e46b40c
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 e46b40c

Please sign in to comment.