jQuery.once() is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the core/once library instead.

Created on 17 October 2023, about 1 year ago
Updated 15 May 2024, 7 months ago

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 β†’

πŸ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States wells Seattle, WA

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

Comments & Activities

  • Issue created by @wells
  • Status changed to Needs review about 1 year ago
  • Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    Waiting for branch to pass
  • πŸ‡ΊπŸ‡ΈUnited States wells Seattle, WA

    Attaching patch to use Drupal's once functionality.

  • πŸ‡ΊπŸ‡ΈUnited States angelazer

    We encountered jQuery.once() error with drag and drop content sections within our entity reference paragraph. This patch resolves our issue.

    drupal.js?v=10.2.4:64 Uncaught TypeError: $(...).once is not a function
        at Object.attach (entity_browser.table.js?sdjpau:14:80)
        at drupal.js?v=10.2.4:166:24
        at Array.forEach (<anonymous>)
        at Drupal.attachBehaviors (drupal.js?v=10.2.4:162:34)
        at success (ajax.js?v=10.2.4:1827:20)
        at l (loadjs.min.js?v=4.2.0:1:217)
        at loadjs.min.js?v=4.2.0:1:1556
        at Array.n (loadjs.min.js?v=4.2.0:1:1483)
        at o (loadjs.min.js?v=4.2.0:1:117)
        at loadjs.min.js?v=4.2.0:1:1287
Production build 0.71.5 2024