JS error after form elements are removed

Created on 1 May 2020, almost 5 years ago
Updated 11 March 2025, 26 days ago

After a form element is removed from the DOM with javascript, this module begins throwing JS errors when the user changes the values of the remaining form elements because it assumes the removed element still exists.

🐛 Bug report
Status

Active

Version

1.3

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • I noticed this problem after seeing an error in the browser's console:

    js_confirm_pop_up.js?v=10.4.4:69 Uncaught TypeError: Cannot read properties of undefined (reading 'length')

    Patch #2 fixed it, thanks.

Production build 0.71.5 2024