Prevent running form_handlers multiple times on the same elements

This commit is contained in:
Mira Weller
2026-09-18 16:58:12 +02:00
parent a6f488d73c
commit 0ed068f50c
@@ -72,6 +72,10 @@ $(document).ajaxError(function (event, jqXHR, settings, thrownError) {
})
let form_handlers = function (el) {
// Prevent running multiple times on the same elements
if (el.is('[data-formset-form-handlers-created]')) return
el.find('[data-formset-form]').attr('data-formset-form-handlers-created', 'true')
el.trigger('rescan.areYouSure')
el.find('[data-formset]').formset(
{