Replace jquery/once by core/once

Created on 24 August 2022, almost 2 years ago
Updated 3 February 2023, over 1 year ago

Problem/Motivation

Getting the following errors in D10.
Uncaught TypeError: this.getElements(...).once is not a function

$(...).find(...).removeOnce is not a function

Steps to reproduce

1. Add a select field to the content type.
2. Go to add content.
3. Check the console.

Proposed resolution

62x: Javascript Deprecation: jQuery.once() is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the core/once library instead. See https://www.drupal.org/node/3158256.

Replace jquery/once by core/once

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

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India omkar-pd

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024