From a85965378e6a8602f08669f4ca29cc2b0912759a Mon Sep 17 00:00:00 2001 From: Andreas Franek Date: Fri, 14 Jul 2023 17:47:17 +0200 Subject: [PATCH] activate sidebar on resetEvents 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`. --- src/core/event/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/event/index.js b/src/core/event/index.js index 11c02f975..de00cc825 100644 --- a/src/core/event/index.js +++ b/src/core/event/index.js @@ -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() {