-
Notifications
You must be signed in to change notification settings - Fork 32
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
[BUG] classNames prop from react-select doesn't work, using in react-select directly works #330
Comments
Interesting, I've never actually used this prop from |
@csandman I found the issue, it will only work out of the box with components which are not part of this lib's |
I've recently taken a look comparing the custom internal components of
So in order to add support for the For more info, can you fill me in on the specific use case you have for this? Are you trying to pair this with tailwind or something like the original feature was designed for? |
I also realized there was an issue related to this made a while ago: #223 For some reason I never looked into the actual impact of the change, or think to implement it here. Ah well. I'm still planning to look into it, I've just been more preoccupied with upgrading for Chakra V3. |
@csandman no worries, my use case is not specific, I can do the same styling using the I'm not sure if you saw the updated sandbox, I've implemented a workaround and it works fine. |
Description
When passing the
classNames
prop fromreact-select
inchakra-react-select
it doesn't apply the class to the respective component.Eg.
I see the props are spread here, which should pass it to react-select and this should probably work
chakra-react-select Version
4.9.1
Link to Reproduction
https://codesandbox.io/p/sandbox/chakra-react-select-classnameprefix-demo-forked-cyym58?file=%2Fexample.js%3A15%2C33
TypeScript?
Steps to reproduce
I've used the same configuration for both the dropdowns, you'll see the
react-select
dropdown applies the class but notchakra-react-select
Operating System
Additional Information
The text was updated successfully, but these errors were encountered: