Uncaught TypeError: $(...).once is not a function

Created on 28 January 2025, 1 day ago

Problem/Motivation

There is a js problem with displaying Mediaflow form on Media creation page (/media/add/mediaflow) on Drupal 10.

jQuery.once() has been removed from Drupal10, https://www.drupal.org/node/3158256 so the script needs to be adjusted accordingly.

Steps to reproduce

Install the module, set up credentials on the config form and try to add new Mediaflow item.

Proposed resolution

Replace usage of `jQuery.once` with `core/once`.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇵🇱Poland zambrey

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024