-
Notifications
You must be signed in to change notification settings - Fork 373
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
Support for multiple
prop on Select
#2347
Comments
Hi @jchamberlain , |
+1 for adding this in the library |
Thank you for the feedback, @lucas-koehler! I've just opened a PR with the changes. |
Is your feature request related to a problem? Please describe.
I would like to use MUI's
Select
component, but with themultiple
flag enabled. See https://mui.com/material-ui/react-select/#multiple-select. Unfortunately, theMuiSelect
component in the material renderers does not accept themultiple
prop nor provide any way to pass it to the underlyingSelect
.Describe the solution you'd like
Locally I've added a new interface to
material-renderers/src/util/theme.ts
:Then added it to the
MuiSelect
component:This worked perfectly for me. I'm not sure if this is the right approach, but could something like this be considered for inclusion?
Describe alternatives you've considered
MUI's
Autocomplete
can do some of this, but it's overly complicated for most of my use cases and it can be confusing to users who are expecting normal<select>
-like behavior.Framework
React
RendererSet
Material
Additional context
No response
The text was updated successfully, but these errors were encountered: