Problem/Motivation
- Drupal 10 got released, need to upgrade requirements
- Updated core_version_requirement to 9/10
- Changed core/jquery.once dependency to core/once
term_reference_tree.js uses a lot of jQuery so that will need a total rewrite at some stage but that'll be for another issue, these changes will be enough to get the updates going
Issue fork term_reference_tree-3327539
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3327539-drupal-10-compatibility
compare
- drupal-10
changes, plain diff MR !10
Comments
Comment #3
vladimirausThanks @j-vee.
Some work required: see my comments on MR.
Comment #4
j-vee commentedCheers, I changed the requirement and added a question about passing once in as a parameter.
Comment #5
vladimirausSee example in
After (removing jQuery dependency)section in this article.Comment #6
j-vee commentedThe example does have it but none of the core JS does, so the doc might be out of date. But I've added it now to this MR. Thanks!
Comment #7
vladimirausThank you @j-vee 🥂
Plenty of examples in core: https://git.drupalcode.org/search?search=%22Drupal%2C+once%22&nav_source...
Comment #8
j-vee commentedThere's many more cases of once not being included as a parameter whenever it is used in core's JS, hence my confusion of the fact https://git.drupalcode.org/search?group_id=2&nav_source=navbar&project_i...
But still, works with or without. Happy for this to be released. Thanks!
Comment #9
dgwolf commentedGlad to read you are making this very helpful module D10 compatible, thanks a lot. Any idea when you will be able to release it?
Comment #11
vladimirausCommitted and ready to use as in branch 2.0.x.
Comment #13
vladimirausComment #14
dgwolf commentedWow, this was fast! Thank you very much!
Greetings from Austria to Australia
Comment #15
vladimiraus👋 🇦🇹 🇦🇺