-
Notifications
You must be signed in to change notification settings - Fork 146
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
Replace select2 with TomSelect #1758
Conversation
a48e0b3
to
3eae208
Compare
my failed experiments with do you have any concerns with the apache license? is there anything to do besides adding the license info to our license file? |
I've asked the internet regarding minimum input length here: https://stackoverflow.com/q/72233401/12345551. About the license: I don't know yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strong 👍 from me on porting this to typescript and moving into its own file :D
I gave up trying to convert the js to typescript, because our code there is heavily intertwined with tomselect stuff (e.g. we inherit from it). To use that in typescript means we have to import the tomselect class into the typescript file, which afaik can't work with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haven't checked in browser yet, code is good though
@niklasmohrin please try again whether inputs are still broken for you. |
Some issues on the degrees page:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is still a mention of select2 in staff_questionnaire_form
Both essentially come from the same tomselect bug:
Possible solutions:
|
TomSelect had two commits pushed today, I imagine a release will follow shortly. The commit messages claim to fix stuff:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good so far :)
6d29f91
to
f4d8e61
Compare
f4d8e61
to
51461fa
Compare
shouldLoad
function seems to only apply to network loads (usingload
), and not showing options that are already locally available (such as the select options in the html). I wasn't able to come up with a nice solution for that yet.Frontend tests?Move stuff into a .ts file? The base template could use some cleanup.All other parts should behave as expected, so feel free to try it out.