mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-25 01:15:50 +08:00
Update sidebar.js
fix bug https://github.com/docsifyjs/docsify/issues/1110
This commit is contained in:
@@ -38,7 +38,8 @@ export function collapse(el) {
|
||||
dom.on(el, 'click', ({ target }) => {
|
||||
if (
|
||||
target.nodeName === 'A' &&
|
||||
target.nextSibling &&
|
||||
target.nextSibling &&
|
||||
target.nextSibling.classList &&
|
||||
target.nextSibling.classList.contains('app-sub-sidebar')
|
||||
) {
|
||||
dom.toggleClass(target.parentNode, 'collapse');
|
||||
|
||||
Reference in New Issue
Block a user