-
Notifications
You must be signed in to change notification settings - Fork 278
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
Remove jQuery dependency #32
Comments
I started on this and have made some progress. I've replaced
`elemHide: (selector) => { elemShow: (selector) => { The class manipulation has been done using the classList methods. has been changed to:
This will require a polyfill for Internet Explorer compatibility. How backwards compatible do you want the project to be? IE 9? I think I only have to fix up the |
many thanks @danagle !! I have other projects with the same tech-stack without any jQuery dependency. This is how I fixed the
I think anything below IE11 should be dropped. |
I just remembered that I didn't add a classList polyfill. |
The beast yet lives - Select2 is dependant on jQuery! YouMightNotNeedJqueryPlugins.com has kindly suggested Choices.js as a vanilla JS alternative. |
That's a good option. We also have https://github.com/JedWatson/react-select. Also might be worth also considering implementing a few components from a Material Design library like https://material-ui-next.com/demos/selection-controls/ |
I've just been looking at the react-select project and v2 which is in alpha has react 16.x as a dependency. |
No description provided.
The text was updated successfully, but these errors were encountered: