-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
if I don't want to filter options while in multi mode #1847
Comments
Hi @kcliu can you give us a bit more information? Are you proposing a feature? |
yes, I think it's more like a feature/enhancement, just like what pr #1731 did, to add more flexibility for the options. when we use multiselect mode, we may not always want to filter the selected options. Therefore, making Below is the example that I want to leverage |
This seems like a pretty obvious enhancement. I have an identical mock-up that I'm trying to recreate. |
Hi @kcliu i see. But this doesn’t look like a select component you are looking for a menu component, right? |
@agirton Nope, the mock-up is just for demonstration. |
+1 I too am interested in being able to render the menu in the way described by @kcliu kcliu as it's much more mobile friendly. |
Is seems like this PR might fix this, and it's only a tiny change to pass along the valueArray. |
Hi @newswim my concern is some people may be expecting this old behavior, so it's best to wait till after 1.0 is released. |
I've stepped through the code and this should be safe (not make a difference) because the function signature remains the same, and by default selected options aren't being passed to the menuRenderer anyway. So I've merged that PR, which (in combination with the new |
Instead of filter options in 'multi' mode, if we have to rewrite filterOptions, we may also want to do something to the selected options ((e.g apply a style, remove option if click again). Therefore, pass valueArray and removeValue() to menuRenderer would be needed.
The text was updated successfully, but these errors were encountered: