We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85c3c2e commit feddd69Copy full SHA for feddd69
1 file changed
src/core/event/sidebar.js
@@ -38,9 +38,9 @@ export function collapse(el) {
38
dom.on(el, 'click', ({ target }) => {
39
if (
40
target.nodeName === 'A' &&
41
- target.nextSibling &&
42
- target.nextSibling.classList &&
43
- target.nextSibling.classList.contains('app-sub-sidebar')
+ target.nextElementSibling &&
+ target.nextElementSibling.classList &&
+ target.nextElementSibling.classList.contains('app-sub-sidebar')
44
) {
45
dom.toggleClass(target.parentNode, 'collapse');
46
}
0 commit comments