-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
<AutocompleteInput>
should allow to override renderInput
#10430
Comments
I believe the |
The gap in functionality is in a case where we need grouping and displaying selected option as custom component.I do use In the following, we use custom component for options with grouping. But after making a selection, the selected option must be displayed as a string. We can display the selected option as a custom component using |
You're right. Thanks for the clarifications. It seems that MUI handles grouping in a very different way between Autocomplete and Select. Supporting grouping in An alternative solution could be to let you customize the rendered input in Can you confirm passing your own Thanks. |
I solved it using
Passing a custom component using I suggest not omitting |
Thanks for your feedback and for sharing your solution. I don't believe Marking as a (TS) enhancement. |
<AutocompleteInput>
should allow to override renderInput
The SelectInput component currently lacks support for grouping options, a feature that is available in the AutoCompleteInput component.
The challenge arises because the AutoCompleteInput component input must be a string, making it incompatible with rendering custom components, which the SelectInput component supports.
This limitation creates a gap in functionality:
If grouping is required, AutoCompleteInput must be used, but it sacrifices the flexibility of rendering custom components for displaying the selected option. Conversely, SelectInput can render custom components but does not support grouping.
The text was updated successfully, but these errors were encountered: