Skip to content

Commit f672341

Browse files
trusktrCopilot
andauthored
Update src/core/event/index.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a042aca commit f672341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/event/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export function Events(Base) {
252252
const hasSubSidebar = linkParent?.querySelector('.app-sub-sidebar');
253253

254254
if (hasSubSidebar) {
255-
dom.body.classList.toggle('collapse');
255+
linkParent.classList.toggle('collapse');
256256
}
257257
});
258258
}

0 commit comments

Comments
 (0)