Skip to content

Commit

Permalink
activate sidebar on resetEvents
Browse files Browse the repository at this point in the history
When no `fetch`is done, the active sidebar element is not updated when
a link is clicked. This is changed in this commit by calling
getAndActive in `$resetEvents`.
  • Loading branch information
AndreasFranek committed Jul 14, 2023
1 parent a69c22a commit a859653
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/event/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ export function Events(Base) {
if (this.config.loadNavbar) {
sidebar.getAndActive(this.router, 'nav');
}
if (this.config.loadSidebar) {
sidebar.getAndActive(this.router, '.sidebar-nav', true, true);
}
}

initEvent() {
Expand Down

0 comments on commit a859653

Please sign in to comment.