]> source.dussan.org Git - redmine.git/commitdiff
Fix click event handling in mobile view after closing flyout menu (#39802).
authorGo MAEDA <maeda@farend.jp>
Fri, 2 Feb 2024 00:54:48 +0000 (00:54 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 2 Feb 2024 00:54:48 +0000 (00:54 +0000)
Patch by salman mp (@salmanmp) and Mizuki ISHIKAWA (@ishikawa999).

git-svn-id: https://svn.redmine.org/redmine/trunk@22670 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/responsive.js

index 1bf1b420f4ad713c1614d7508228c60f8bc46fed..f3593243df98d41901939f439b772c1903602852 100644 (file)
@@ -8,7 +8,7 @@
 
 function openFlyout() {
   $('html').addClass('flyout-is-active');
-  $('#main').on('click', function(e){
+  $('#main, #header').on('click.close-flyout', function(e){
     e.preventDefault();
     e.stopPropagation();
     closeFlyout();
@@ -17,7 +17,7 @@ function openFlyout() {
 
 function closeFlyout() {
   $('html').removeClass('flyout-is-active');
-  $('#wrapper').off('click');
+  $('#main, #header').off('click.close-flyout');
 }