-
Notifications
You must be signed in to change notification settings - Fork 97
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
Can't set class in dropdown container #71
Comments
Hi, Any help on this would be appreciated. Thanks |
Do you use Webpack? |
If you are using the webpack, please see this #8 |
Thanks for the reply. I'm not using Webpack. Are there other options for me? |
Thanks for the pointer in #8. Based on this I used pathmodify to rewrite the path for select2 to the full version (I'm using browserify): The relevant portion of my gulp task looks like this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to set a class in the generated select2 dropdown container via the
dropdownCssClass
option.E.g.
I read that this option requires the full version of select2 to work.
I'm able to get it working by changing the code on line 29 of /react-select2-wrapper/lib/components/Select2.js from:
require('select2');
to:
require('select2/dist/js/select2.full');
Is there any way I can tell react-select2-wrapper to use the full version without hacking the package?
Thanks
The text was updated successfully, but these errors were encountered: