all the parents of an active child are also active

This commit is contained in:
SimonGschnell
2024-09-25 10:46:09 +02:00
parent 3c050438b3
commit 951d5bb2c7
+4 -1
View File
@@ -46,7 +46,10 @@ export default {
computed: {
active: function () {
if (this.activeContent) {
if (this.entry.menu_open){
return true;
}
else if (this.activeContent) {
return this.activeContent == this.entry.content_id;
} else {
return false;