Problem/Motivation
The jquery.once library was apparently removed in Drupal 10.
I do now have the problem, that improved_multi_select doesn't work as a consequence.
I get the error: $(...).once is not a function
Steps to reproduce
Install Drupal 10.0.3
Install improved_multi_select latest dev
Visit any page with IMS enabled on the form element
You should see a JavaScript error and have a non-working IMS
Proposed resolution
I attached a patch that replaces jQuery.once with the new core/jquery.once library.
According https://www.drupal.org/node/3158256 this library part of 9.2 core
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | ims-3343529-d10.patch | 1.53 KB | holo96 |
Comments
Comment #2
scotwith1tComment #3
scotwith1tComment #4
holo96 commentedInitial patch is not correct, library is not attached, also once is not param.
Attaching new patch.
Comment #5
andypostLooks great and will need new release
Comment #8
andypostCommited and creating new release
Comment #9
andyposthttps://www.drupal.org/project/improved_multi_select/releases/8.x-1.8