mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
FIX: form wrapper
This commit is contained in:
parent
f2ad601ab9
commit
4a163239fa
@ -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)
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user