[Select] Style is broken when adding a className in the SelectDisplayProps #23201
Closed
2 tasks done
Labels
bug 馃悰
Something doesn't work
component: select
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
Adding a className in the
SelectDisplayProps
actually overides its existing classNamesCurrent Behavior 馃槸
I have a component. When I want to give a className to the div that display the selected value of the Select, instead of adding the className to the others like every material ui component, it overrides them. I have a <Select /> component, when I add a className in SelectDisplayProps, it overirdes the existing classNames of the component that display the selected value in the .
Expected Behavior 馃
It should not overrides the existing classNames but be added to them.
Steps to Reproduce 馃暪
Here you can find a sandbox to see the bug: https://codesandbox.io/s/material-ui-issue-forked-oi0vd
Steps:
SelectDisplayProps
:SelectDisplayProps
to undefined, as if you didn't specified one.SelectDisplayProps
, there is the material UI default class. But when theSelectDisplayProps
is specified, the className disappearContext 馃敠
I want to overrides the style of the element that display the select value. The problem exist even if i totally change the style i'm trying to give, so I don't think it's related.
Your Environment 馃寧
The text was updated successfully, but these errors were encountered: