|
@ -8,6 +8,9 @@ import { |
|
|
var type = ""; |
|
|
var type = ""; |
|
|
|
|
|
|
|
|
const getParentCollapseElement = function (el) { |
|
|
const getParentCollapseElement = function (el) { |
|
|
|
|
|
if (el.classList.contains("collapse")) { |
|
|
|
|
|
return el; |
|
|
|
|
|
} |
|
|
const parentElement = el.parentElement; |
|
|
const parentElement = el.parentElement; |
|
|
const containsCollapseClass = parentElement.classList.contains("collapse"); |
|
|
const containsCollapseClass = parentElement.classList.contains("collapse"); |
|
|
return containsCollapseClass |
|
|
return containsCollapseClass |
|
|