- Issue created by @lostcarpark
- 🇮🇪Ireland lostcarpark
This turned out to be three separate issues:
- Classes for Extra Field and Rights Type have changed.
JS was selecting for ".form-item-extra" and ".form-item-rights-type". The classes now on the fields are ".js-form-item-extra" and ".js-form-item-rights-type". Updated class selectors to correct.
- JQuery "once" method no longer supported.
The JQuery "once" method is deprecated since Drupal 9.2, and removed in 10.0. There is a new core/once library to take its place. Updated to use this.
- Hiding optgroups not supported in Safari.
The JS code was hiding all optgroups except the current bundle. This worked in Chrome and Firefox, but is not supported in Safari. I have changed the JS to move all optgroups into an array, and add the required optgroup back to the select as needed. This should work in all browsers. Tested in Chrome/Firefox/Safari.
I have bundled all of these changes into the D10 fixes under 📌 Automated Drupal 10 compatibility fixes Fixed .
- Classes for Extra Field and Rights Type have changed.
- 🇳🇱Netherlands Marceldeb
Thanks a lot, i will create a new release after i did some testing!
- Status changed to Needs review
almost 2 years ago 9:22pm 19 February 2023 - 🇳🇱Netherlands Marceldeb
Changes are added to the new 8.x-3.x branch because these changes will no longer work with Drupal 8.
I did some basic testing on Drupal 9 and all seems to work fine. Would be nice to have some more testing done.
- Status changed to Fixed
over 1 year ago 6:37pm 16 March 2023