Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/core/event/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ export function btn(el) {
toggle();
});

// use content instead of dom.body to avoid sidebar closing while clicking among catalog items
let content = document.querySelector('section.content');
isMobile &&
dom.on(
dom.body,
content,
'click',
_ => dom.body.classList.contains('close') && toggle()
);
Expand Down