Remove jQuery Once dependency

Created on 15 March 2023, over 1 year ago
Updated 25 July 2023, over 1 year ago

Problem/Motivation

Drupal 10 appears to be moving away from relying on jQuery and instead using more vanilla JS. Lockr only has 2 behaviors that can likely be updated to not rely on jQuery and instead use vanilla JS. This originally came up because of console errors regarding the once() function. See Remove jQuery dependency from the once feature .

Steps to reproduce

  • Install a new D10 site
  • Install Lockr
  • Load Lockr settings page; inspect the console
  • Attempt to register the site

Proposed resolution

Update the 2 behaviors to use vanilla JS and Drupal methods rather than jQuery.

Remaining tasks

  • Update the register.js - lockr_register behavior
  • Update the move_to_prod.js - lockr_move_to_prod behavior

User interface changes

None

API changes

None

Data model changes

None

📌 Task
Status

Fixed

Version

5.0

Component

Code

Created by

🇨🇴Colombia jlockhart Nomadic: Colombia

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

Comments & Activities

Production build 0.71.5 2024