From e46b40c67fdfb5ab2dc7fcf47f015abc3b83ec1e Mon Sep 17 00:00:00 2001 From: jnachtigall Date: Mon, 8 Jan 2018 11:56:00 +0100 Subject: [PATCH] Add explicit docs on how to disable client side filtering --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7bcd9361a6..70feb3bae8 100644 --- a/README.md +++ b/README.md @@ -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