jQuery once deprecated in 9.3

Created on 12 March 2023, almost 2 years ago
Updated 16 March 2023, almost 2 years ago

Problem/Motivation

When trying to create a new core with drd on Drupal 10, I get the following error:

drupal.js?v=10.0.4:64 Uncaught TypeError: $(...).once is not a function
at Object.attach (drd.js?v=3.x:10:70)
at drupal.js?v=10.0.4:166:24
at Array.forEach ()
at Drupal.attachBehaviors (drupal.js?v=10.0.4:162:34)
at drupal.init.js?v=10.0.4:32:12
at HTMLDocument.listener (drupal.init.js?v=10.0.4:20:7)

It's actually preventing me from creating the new core by disabling the save button for some reason.

Steps to reproduce

New install of Drupal 10
Install Drd
Install real aes
Create your key
create your encryption profile
add a host
go to /drd/cores/add
Note the Javascript error.

Proposed resolution

Jquery once has been deprecated in Drupal 9.3. You can see the change record here: https://www.drupal.org/node/3158256

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.1

Component

Code

Created by

🇺🇸United States generalredneck

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

Comments & Activities

Production build 0.71.5 2024