mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 15:58:53 +00:00
Fix scroll up by adding preventDefault for site menu toggle on mobile
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
//toggle off-canvas navigation for M- screens
|
||||
$('#navigation-toggle').on('click', function() {
|
||||
$('#navigation-toggle').on('click', function(evt) {
|
||||
evt.preventDefault();
|
||||
evt.stopPropagation();
|
||||
$('#site-navigation,.all-content-wrapper,#navigation-toggle').toggleClass('navigation-open');
|
||||
});
|
||||
//close navigation if body content is clicked when docs are open
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user