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, 9 months ago
Updated 15 May 2024, about 2 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 9 months ago
  • Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update 9 months 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.69.0 2024