Remove jQuery.once dependency

Created on 14 April 2023, about 1 year ago

Problem/Motivation

For rendering tables, this module currently requires jQuery.once , which is being deprecated in Drupal 10. I found it didn't work even with Drupal 9.5 when no other installed modules had jquery/once listed as a dependency.

Steps to reproduce

* Install Drupal 9 and Data Visualisation Framework.
* Add a Visualisation File field to a content type.
* Create a node with DVF content set to render as a table.
* View the node as an admin user—table renders as expected.
* View the node as an anonymous user—table does not render, console reports javascript error "Uncaught TypeError: once is not a function."

Proposed resolution

Replace the jQuery.once implementation with core/once.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States jmcintyre

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

Comments & Activities

Production build 0.69.0 2024