-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[data grid] Filter panel - Props doesn't passed to selects #16721
Comments
This will get fixed in the new major release with #16394 ... I am not sure if we can support this with a workaround atm. The problem is that the props are being spread on top of a I'll add this to the board as it is clearly a bug we should fix for the current stable version! 👍🏼 |
Thanks! |
For now I would recommend implementing the function CustomSelect(props) { ... }
<DataGrid
slots={{ baseSelect: CustomSelect }}
/> |
@romgrk -------- EDIT ----- I tried to pass through the slotProps the icon to the baseSelect, and it didn't work. Thanks! |
I don't think this is a bug, we can't be both design-system agnostic and allow passing any material-ui prop to our base components. I would recommend directing users to the solution above for customization. |
Steps to reproduce
Steps:
Current behavior
The filter item render the default drop-down icon (ArrowDropDownIcon)
Expected behavior
The filter item should be rendering the drop-down icon that passed via the props (ArrowDropDownCircleIcon)
Context
Since
operatorInputProps
is mentioned as "Props passed to the logic operator input component" in operatorInputProps docs, I expected that all valid<Select/>
props should be passed to the input component (Select props), like it works withvariant
andsize
.I tried to change the drop-down icon, but it doesn't.
Thanks!
Your environment
npx @mui/envinfo
Search keywords: select filter icon
The text was updated successfully, but these errors were encountered: