fix for custom checkboxes... no idea why broken
This commit is contained in:
parent
62296e9a5f
commit
9f82373754
@ -152,6 +152,9 @@
|
|||||||
window.utils.reactiveFileCheckbox = function(input, label, parent) {
|
window.utils.reactiveFileCheckbox = function(input, label, parent) {
|
||||||
// adds eventlistener(s)
|
// adds eventlistener(s)
|
||||||
function addListener(container) {
|
function addListener(container) {
|
||||||
|
container.addEventListener('click', function() {
|
||||||
|
input.click();
|
||||||
|
});
|
||||||
input.addEventListener('change', function(event) {
|
input.addEventListener('change', function(event) {
|
||||||
container.classList.toggle('file-checkbox__container--valid', this.checked);
|
container.classList.toggle('file-checkbox__container--valid', this.checked);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user