Browse Source

fix: Fixed crash, when touching the collapse element directly.

master
Denis Thiessen 5 months ago
parent
commit
d47790f4ae
  1. 3
      src/components/DetailElement.jsx

3
src/components/DetailElement.jsx

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

Loading…
Cancel
Save