Problem/Motivation
core/jquery.once is deprecated and core/once is recommended as of Drupal 9.2. jquery.once is removed in Drupal 10.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | chosen-once-3326698.patch | 1.57 KB | j_s |
| #3 | deprecated-3326698-3.patch | 332 bytes | atul_ghate |
Comments
Comment #2
atul_ghate commentedHello,
I will work on this issue.
Comment #3
atul_ghate commentedI have replaced core/jquery.once with core/once and provided a patch for your review
Comment #4
atul_ghate commentedComment #5
j_s commentedThanks for the update! From my testing on Drupal 10, it'll need more rework in the JS file. Enabling Chosen on admin pages and then testing it on admin views, it didn't work with an error about this.getElements(context).once not being a function.
Additionally, it may be good to set the Drupal version requirement for the module to ^9.2 | 10 since it'll probably break anything below that.
Comment #6
j_s commentedAttached is a patch, tested on Drupal 9 and 10.
Comment #8
nagy.balint commentedThanks!