-
Notifications
You must be signed in to change notification settings - Fork 2
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
Migrate from Select2 and Chosen to tom-select #312
Comments
I had planned to start this migration as part of the work on adding a natural language selector to the ontology submission form, but initial attempts to integrate tom-select result in:
This error is present with both the normal tom-select: @import "tom-select/dist/css/tom-select"; ... and the Bootstrap 5 tom-select: @import "tom-select/dist/css/tom-select.bootstrap5"; This is an open issue in tom-select (orchidjs/tom-select#561), and the proposed solutions are either upgrading to Bootstrap 5.3.2 (didn't work for everyone), or migrating to Dart Sass. |
Thanks for the comment, but none of the permutations work. tom-select.scss:
tom-select.bootstrap5.scss:
I'll need to look at the other proposed solutions when I have time. |
Replace all usages of Select2 and Chosen with tom-select. Chosen is deprecated, and the select2-rails gem that we use to pull in Select2 is no longer maintained.
The
allowClear
functionality in Select2 has stopped working. This can be seen on the AnnotatorPlus page under advanced options. Clicking on the 'x' button in any of the select boxes to clear the contents results in a JSUncaught TypeError
.This will also put us in better alignment with AgroPortal (currently using tom-select).
The text was updated successfully, but these errors were encountered: