Uncaught TypeError: $(...).once is not a function in Drupal10

Created on 23 June 2023, over 1 year ago

Problem/Motivation

The jquery.once library was apparently removed in Drupal 10.
I do now have a problem, that signature_field doesn't work as a consequence.

Steps to reproduce

  1. Install Drupal 10.0.9
  2. Install signature_field 8.x-2.1
  3. Add a Signature field on your content type
  4. View your content type add/edit page
  5. You should see a JavaScript error in your console and have a non-working signature field

Proposed resolution

I attached a patch that adds the core/once library and keeps the jQuery dependency.
(See https://www.drupal.org/node/3158256 )

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇷🇸Serbia norbert-goco Subotica

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

Comments & Activities

Production build 0.71.5 2024