[Drupal 9.2.x] Replace jquery.removeOnce with new once API

Created on 23 January 2023, almost 2 years ago

Problem/Motivation

It appears that a jQuery.fn.removeOnce function was not removed in the webform.element.managed_file.js file on line 73 when issue #3295609 πŸ“Œ [Drupal 9.2.x] Replace jquery.once with new once API Fixed was addressed. This function causes a console error when you use a file input.

Steps to reproduce

Create a webform with a file input.
Open the form
Looks at the browser console to see the error.

Proposed resolution

I would like to propose replacing this function with the once.remove function. ie

const removedElements = once.remove('webform-auto-file-upload', 'input[type="file"]', context);
πŸ› Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rymcveigh

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

Comments & Activities

Production build 0.71.5 2024