$(...).once is not a function in Drupal10

Created on 21 February 2023, over 1 year ago
Updated 29 April 2023, over 1 year ago

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

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scotwith1t Birmingham, AL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024