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

Filter text is not trimmed #1861

Closed
serkanozer opened this issue Jul 6, 2017 · 0 comments
Closed

Filter text is not trimmed #1861

serkanozer opened this issue Jul 6, 2017 · 0 comments

Comments

@serkanozer
Copy link
Contributor

This is a problem when you type a filter starting or ending with space characters

Type " new south wales" or "new south wales " in the first example
Actual:
No options shown
Expected
New South Wales option should be shown

Whitespaces wrapping the filter should be trimmed so that intended value could be matched. This is also the default behaviour
in https://harvesthq.github.io/chosen/ and http://selectize.github.io/selectize.js/

@serkanozer serkanozer changed the title Need to trim filter value Filter text is not trimmed Jul 6, 2017
serkanozer added a commit to serkanozer/react-select that referenced this issue Jul 6, 2017
gwyneplaine added a commit that referenced this issue Oct 23, 2017
Trim search text from beginning and the end. (fixes #1861)
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

1 participant