Skip to content

Commit feddd69

Browse files
fix: fix collapse selector
1 parent 85c3c2e commit feddd69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/event/sidebar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export function collapse(el) {
3838
dom.on(el, 'click', ({ target }) => {
3939
if (
4040
target.nodeName === 'A' &&
41-
target.nextSibling &&
42-
target.nextSibling.classList &&
43-
target.nextSibling.classList.contains('app-sub-sidebar')
41+
target.nextElementSibling &&
42+
target.nextElementSibling.classList &&
43+
target.nextElementSibling.classList.contains('app-sub-sidebar')
4444
) {
4545
dom.toggleClass(target.parentNode, 'collapse');
4646
}

0 commit comments

Comments
 (0)