Javascript error in form.js

Created on 7 October 2024, about 1 month ago

Problem/Motivation

Im getting a javascript error im onFormSubmit function in file core/misc/form.js when i have a webform and a custom form on the same page.
Error: TypeError: Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.

Proposed resolution

Line 129 "new FormData(e.target)," should be changes to "new FormData($form.get(0)),"

πŸ› Bug report
Status

Active

Version

10.3 ✨

Component

forms system

Created by

πŸ‡ΈπŸ‡ͺSweden kevinn

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

Comments & Activities

Production build 0.71.5 2024