fix for custom checkboxes... no idea why broken

This commit is contained in:
Felix Hamann 2018-03-31 01:59:59 +02:00
parent 62296e9a5f
commit 9f82373754

View File

@ -152,6 +152,9 @@
window.utils.reactiveFileCheckbox = function(input, label, parent) {
// adds eventlistener(s)
function addListener(container) {
container.addEventListener('click', function() {
input.click();
});
input.addEventListener('change', function(event) {
container.classList.toggle('file-checkbox__container--valid', this.checked);
});