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 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);
Issue fork webform-3335861
Show commands
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!