From a0be148e8912ca8a8471447b0eeeed332437ee74 Mon Sep 17 00:00:00 2001 From: Tomasz Dziezyk Date: Fri, 9 Aug 2024 13:25:05 +0200 Subject: [PATCH] KAW-7708 Remove unused code --- blocks/form/form.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/blocks/form/form.js b/blocks/form/form.js index 8274907..9536b0a 100644 --- a/blocks/form/form.js +++ b/blocks/form/form.js @@ -18,15 +18,7 @@ async function createForm(formHref) { } }); - // group fields into fieldsets - const fieldsets = form.querySelectorAll('fieldset'); - fieldsets.forEach((fieldset) => { - form.querySelectorAll(`[data-fieldset="${fieldset.name}"`).forEach((field) => { - fieldset.append(field); - }); - }); - - // create general erro form message + // create general error form message const generalErrorWrapper = document.createElement('div'); const generalErrorText = document.createElement('span'); generalErrorWrapper.classList.add('form-general-error-wrapper');