Skip to content
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

className not working on SelectField component #1975

Closed
ArthurRougier opened this issue Oct 23, 2015 · 5 comments
Closed

className not working on SelectField component #1975

ArthurRougier opened this issue Oct 23, 2015 · 5 comments
Labels
component: select This is the name of the generic UI component, not the React module!

Comments

@ArthurRougier
Copy link

when setting a className on a SelectField component, the class is not appended on the main element but on one of its children.

selectfieldissue

@oliviertassinari
Copy link
Member

I agree with you. I think that properties not used by the internal of material-ui component should be applyied to the root element.

@oliviertassinari
Copy link
Member

@ArthurRougier I think that #1910 is solving your issue. Can you check?

@ArthurRougier
Copy link
Author

@oliviertassinari thanks for your answer, I have to admit that I'm a bit struggling to update to that version though. The description corresponding accurately to my problem, I guess it does solve it. I can wait for it to be included in the next update and keep you posted.

@Taakn
Copy link

Taakn commented Apr 6, 2016

@oliviertassinari as of 0.14.4 this bug is still there. Thanks.

@oliviertassinari
Copy link
Member

@Taakn You are right. I think that we should move the {...other} spread to the root component.

mnajdova pushed a commit to mnajdova/material-ui that referenced this issue Nov 10, 2020
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
@zannager zannager added the component: select This is the name of the generic UI component, not the React module! label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: select This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

5 participants