Closed (fixed)
Project:
Webform
Version:
6.2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2023 at 15:43 UTC
Updated:
6 Feb 2023 at 22:24 UTC
Jump to comment: Most recent
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 was addressed. This function causes a console error when you use a file input.
Create a webform with a file input.
Open the form
Looks at the browser console to see the error.
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);
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rymcveighI created an MR where I replace the removeOnce with the new once API function.
Comment #6
jrockowitz commentedComment #7
gregglesThanks for the quick review and merge!