fixed unpack-file checkbox

This commit is contained in:
Felix Hamann 2018-06-21 00:26:38 +02:00
parent 8f2a632c8e
commit cf7e12f825
2 changed files with 9 additions and 9 deletions

View File

@ -122,6 +122,8 @@
if (isMulti) {
wrapper = document.createElement('div');
wrapper.classList.add('file-input__wrapper');
console.log(wrapper);
// TODO: fix file input
formGroup.insertBefore(wrapper, input);
}
input.remove();
@ -165,14 +167,14 @@
if (!input.parentElement.classList.contains(type)) {
var parentEl = input.parentElement;
var wrapper = document.createElement('div');
var label = document.createElement('label');
wrapper.classList.add(type);
label.setAttribute('for', input.id);
wrapper.appendChild(input);
wrapper.appendChild(label);
var wrapperEl = document.createElement('div');
var labelEl = document.createElement('label');
wrapperEl.classList.add(type);
labelEl.setAttribute('for', input.id);
wrapperEl.appendChild(input);
wrapperEl.appendChild(labelEl);
parentEl.appendChild(wrapper);
parentEl.appendChild(wrapperEl);
}
}

View File

@ -261,8 +261,6 @@ input[type="file"].js-file-input {
.file-checkbox__container,
.file-input__unpack {
grid-column-start: 2;
display: flex;
justify-content: space-between;
margin: 4px 0;
}
.file-input__label,