-
Notifications
You must be signed in to change notification settings - Fork 933
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
"closeOnSelection" property(Multiple selection out of box) #319
Comments
Seems like a good idea! What if we made the solution more powerful. What if we added a prop called stateToSet = this.props.modifyStateChange(stateToSet, state) Where the default would simply return This would actually allow people to not have to control state quite as much I think which would be pretty handy! What do you think? |
@kentcdodds, Yeah! Looks great! i like this solution 👍, thanks. |
Yep, I love that 👍 Would you like to work on both of those? They should be in different PRs I think :) |
Yes, i can. Of course, different. |
Loving the ideas coming here. Thank you! |
I want to propose new Prop named
closeOnSelection
.What happened, Problem description:
This codesandbox-example(Your Multi-select example with latest Downshift version) contains hardcoded solution: Menu doesn't close(as it were), it open after close. Because of this, the
highlightedIndex
is reset; as well as existence of a lot of handlers that just control the state ofisOpen
.Suggested solution:
!NOTE: At now this will work fine only for the case with
Input
element, because it's focusing after select.The text was updated successfully, but these errors were encountered: