Explorar el Código

Merge pull request #717 from zviryatko/patch-1

Fix animation bug with collapsed sidebar and treeview menu.
Abdullah Almsaeed hace 9 años
padre
commit
1c448a3afa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dist/js/app.js

+ 1 - 1
dist/js/app.js

@@ -394,7 +394,7 @@ function _init() {
       var checkElement = $this.next();
 
       //Check if the next element is a menu and is visible
-      if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible'))) {
+      if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible')) && (!$('body').hasClass('sidebar-collapse'))) {
         //Close the menu
         checkElement.slideUp(animationSpeed, function () {
           checkElement.removeClass('menu-open');