Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to disable client side filtering for Async #1714

Closed
arthurchipdean opened this issue May 9, 2017 · 4 comments
Closed

Any way to disable client side filtering for Async #1714

arthurchipdean opened this issue May 9, 2017 · 4 comments

Comments

@arthurchipdean
Copy link

arthurchipdean commented May 9, 2017

I'm creating an autocomplete/ suggestion tool that fetches options from the server. Some of the options are synonyms and do not exactly match what the user is typing and it seems like these are automatically being filtered out. Is there anyway to disable this behavior and just display the results from the server? I don't see any options listed to do this.

Thanks!

@G710
Copy link

G710 commented May 11, 2017

Thank you, I was wondering why my results were not showing. I found a way to diable the client filtering by setting a custom filter function as follows:

filterOptions={(options, filter, current_values)=>{return options;}}

Where options is the complete array, filter is the user input and current_values are the currently selected values.

@arthurchipdean
Copy link
Author

That worked for me! Thanks :)

@dsullivan7
Copy link

dsullivan7 commented Mar 10, 2023

For those trying to do this from v2 onwards, I found that the following works:

filterOption={() => true}

@Ahmad-Wali-Sh
Copy link

But the Thing with this solution is, it override filterOption={createFilter({ ignoreAccents: false,})} and it would not be performance optimized.
any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants