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

Option to preserve inputValue after select item in multiselect #709

Closed
nosovsh opened this issue Jan 14, 2016 · 3 comments
Closed

Option to preserve inputValue after select item in multiselect #709

nosovsh opened this issue Jan 14, 2016 · 3 comments

Comments

@nosovsh
Copy link

nosovsh commented Jan 14, 2016

Use case: user types search text in text field to filter items in multiselect. Then he wants to select few of filtered items(more than one). In current implementation dropdown will be closed after selecting one of the items so user has to type search text again.

What about adding an option "preserveInputValue"? if it is true, search text will not be cleared after item selection.

I'm currently working on PR because I need it anyway in my project. Please tell me if this feature fits in your roadmap or you have any advices/suggestions.

nosovsh added a commit to nosovsh/react-select that referenced this issue Jan 15, 2016
nosovsh added a commit to nosovsh/react-select that referenced this issue Jan 15, 2016
@wmertens
Copy link

Would onBlurResetsInput bool true whether to clear input on blur do what you want? And then another option would be needed on multi-select that keeps the option list open on select?

nosovsh added a commit to nosovsh/react-select that referenced this issue Jan 31, 2016
pass `hasSelectAll=true` prop to show "Select all" button in multiselect dropdown
pass `selectAllText="Custom select all` prop to change default button text
nosovsh added a commit to nosovsh/react-select that referenced this issue Jan 31, 2016
@nosovsh
Copy link
Author

nosovsh commented Jan 31, 2016

no, onBlurResetsInput is responsible for clearing or not clearing input when widget looses focus. I want the input value to be not cleared when some option is selected.
I create PR #750. Check it please
You can pass onSelectResetsInput=false to achieve this

@mthomas46
Copy link

I would also like to see this, even thought the list is preserved, when working with large volumes of data, the user can easily forget what they typed to get that list

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

3 participants