Roo/bootstrap/layout/Region.js
authoredward <edward@roojs.com>
Wed, 18 Apr 2018 09:40:21 +0000 (17:40 +0800)
committeredward <edward@roojs.com>
Wed, 18 Apr 2018 09:40:21 +0000 (17:40 +0800)
Roo/bootstrap/layout/Region.js

index 98d6f43..6db5574 100644 (file)
@@ -522,6 +522,11 @@ Roo.extend(Roo.bootstrap.layout.Region, Roo.bootstrap.layout.Basic, {
             if(this.activePanel.setActiveState(false) === false){
                 
                 if(this.activePanel.tabItem){
+                    
+                    if(this.activePanel.tabItem.tabPanel.active){
+                        this.active.hide();
+                    }
+                    
                     this.activePanel.tabItem.tabPanel.active = this.activePanel.tabItem;
                     this.activePanel.tabItem.pnode.addClass("active");
                 }