Skip to content

Commit

Permalink
🐛Referred to db3befa on click on search sidebar item without searches
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Nov 22, 2024
1 parent 228fc69 commit 9ad13cd
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/SidebarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,18 @@
});
}
const node = this.component.getInternalComponent().$el;
//@since 3.11.0 Need to add check of sidebar components, in case, for example, close
// contents element and some sidebar component is related to it's close, for example, qplotly
//a toggle menu open of <ul>
node.classList.toggle('menu-open', open);
// toggle active of <li> element
node.parentNode.classList.toggle('active', open);

//@since 3.11.0 need to check if is a html element node.
// In case of v-if vue element is false, return <!--> string
if (node.classList && node.parentNode) {
//@since 3.11.0 Need to add check of sidebar components, in case, for example, close
// contents element and some sidebar component is related to it's close, for example, qplotly
//a toggle menu open of <ul>
node.classList.toggle('menu-open', open);
// toggle active of <li> element
node.parentNode.classList.toggle('active', open);
}
this.component.setOpen(open);

};
},

Expand Down

0 comments on commit 9ad13cd

Please sign in to comment.