fixed unpack-file checkbox
This commit is contained in:
parent
8f2a632c8e
commit
cf7e12f825
@ -122,6 +122,8 @@
|
|||||||
if (isMulti) {
|
if (isMulti) {
|
||||||
wrapper = document.createElement('div');
|
wrapper = document.createElement('div');
|
||||||
wrapper.classList.add('file-input__wrapper');
|
wrapper.classList.add('file-input__wrapper');
|
||||||
|
console.log(wrapper);
|
||||||
|
// TODO: fix file input
|
||||||
formGroup.insertBefore(wrapper, input);
|
formGroup.insertBefore(wrapper, input);
|
||||||
}
|
}
|
||||||
input.remove();
|
input.remove();
|
||||||
@ -165,14 +167,14 @@
|
|||||||
|
|
||||||
if (!input.parentElement.classList.contains(type)) {
|
if (!input.parentElement.classList.contains(type)) {
|
||||||
var parentEl = input.parentElement;
|
var parentEl = input.parentElement;
|
||||||
var wrapper = document.createElement('div');
|
var wrapperEl = document.createElement('div');
|
||||||
var label = document.createElement('label');
|
var labelEl = document.createElement('label');
|
||||||
wrapper.classList.add(type);
|
wrapperEl.classList.add(type);
|
||||||
label.setAttribute('for', input.id);
|
labelEl.setAttribute('for', input.id);
|
||||||
wrapper.appendChild(input);
|
wrapperEl.appendChild(input);
|
||||||
wrapper.appendChild(label);
|
wrapperEl.appendChild(labelEl);
|
||||||
|
|
||||||
parentEl.appendChild(wrapper);
|
parentEl.appendChild(wrapperEl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -261,8 +261,6 @@ input[type="file"].js-file-input {
|
|||||||
.file-checkbox__container,
|
.file-checkbox__container,
|
||||||
.file-input__unpack {
|
.file-input__unpack {
|
||||||
grid-column-start: 2;
|
grid-column-start: 2;
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
}
|
}
|
||||||
.file-input__label,
|
.file-input__label,
|
||||||
|
|||||||
Reference in New Issue
Block a user