FIX: form wrapper

This commit is contained in:
Tony Air 2023-11-22 03:57:02 +02:00
parent f2ad601ab9
commit 4a163239fa

View File

@ -65,11 +65,11 @@ const formInit = (form) => {
// wrap form // wrap form
const parent = form.parentElement; const parent = form.parentElement;
if (!parent.classList.contains(CONTAINER_CLASS)) { if (!parent.classList.contains(CONTAINER_CLASS)) {
const elHtml = document.createElement('div') const elHtml = document.createElement('div')
elHtml.classList.add(CONTAINER_CLASS) elHtml.classList.add(CONTAINER_CLASS)
elHtml.append(form) elHtml.append(form)
parent.append(elHtml)
} }
// //