Skip to content

Commit

Permalink
KAW-7708 Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszDziezykNetcentric committed Aug 9, 2024
1 parent 388ec28 commit a0be148
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions blocks/form/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit a0be148

Please sign in to comment.