🐛 Fix bug where a condition was wrong-false

pull/1208/head
Raphael Bernhart 3 years ago
parent cd19b9fc49
commit 0313acd4c5

@ -190,7 +190,7 @@ export default {
previous.classList.toggle("active-sibling"); previous.classList.toggle("active-sibling");
} }
// Check if Next Sibling is heartbar element and doesn't have the empty class // Check if Next Sibling is heartbar element and doesn't have the empty class
if (next.children && next.classList.contains("empty")) { if (next.children && !next.classList.contains("empty")) {
next.classList.toggle("active-sibling"); next.classList.toggle("active-sibling");
} }
} }

Loading…
Cancel
Save