Skip to content
Snippets Groups Projects
Unverified Commit 541eaece authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #2483 from HyphaApp/fix/gh-2475-submission-filter-error

fix: Submission Filter TypeError: 'classList' of undefined
parents af51c678 13077d2f
No related branches found
No related tags found
No related merge requests found
......@@ -33,12 +33,14 @@
// find the matching dropdown
let match = $(`.select2-selection[aria-owns="${selectId}"]`);
// if the dropdown contains a clear class, the filters are active
if ($(match[0]).find('span.select2-selection__clear').length !== 0) {
match[0].classList.add(filterActiveClass);
}
else {
match[0].classList.remove(filterActiveClass);
if (match.length !== 0){
// if the dropdown contains a clear class, the filters are active
if ($(match[0]).find('span.select2-selection__clear').length !== 0) {
match[0].classList.add(filterActiveClass);
}
else {
match[0].classList.remove(filterActiveClass);
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment