$(...).once is not a function on Drupal 10

Created on 13 April 2023, over 1 year ago
Updated 21 April 2023, over 1 year ago

Problem/Motivation

On Drupal 10.x the module doesen't work due to missing of $(...).once

Here the console error:

Uncaught TypeError: $(...).once is not a function
at Object.attach (address-autocomplete.js?rt26cf:30:10)
at drupal.js?v=10.0.7:166:24
at Array.forEach ()
at Drupal.attachBehaviors (drupal.js?v=10.0.7:162:34)
at drupal.init.js?v=10.0.7:32:12
at HTMLDocument.listener (drupal.init.js?v=10.0.7:20:7)
a

Steps to reproduce

Install the module on drupal 10.x

Proposed resolution

Remove jQuery dependency from the once feature

https://www.drupal.org/node/3158256

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇮🇹Italy nessollo

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

Comments & Activities

Production build 0.71.5 2024