Skip to content

Commit 80ca067

Browse files
committed
dont toggle on sidebar
1 parent 6b9c61c commit 80ca067

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LongevityWorldCup.Website/wwwroot/partials/leaderboard-content.html

+4
Original file line numberDiff line numberDiff line change
@@ -2673,6 +2673,10 @@ <h3>Proofs</h3>
26732673
});
26742674

26752675
function toggleSidebar() {
2676+
if (event.target.closest('.sidebar')) {
2677+
// Don't toggle if interacting inside the sidebar
2678+
return;
2679+
}
26762680
sidebar.classList.remove('partially-expanded');
26772681
sidebar.classList.toggle('expanded');
26782682
sidebar.classList.remove('collapsed');

0 commit comments

Comments
 (0)