Roo/bootstrap/DateField.js
authorEdward <edward@roojs.com>
Tue, 10 Jul 2018 06:30:28 +0000 (14:30 +0800)
committerEdward <edward@roojs.com>
Tue, 10 Jul 2018 06:30:28 +0000 (14:30 +0800)
Roo/bootstrap/DateField.js

index 97c118f..f786358 100644 (file)
@@ -978,7 +978,17 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
     
     setVisible : function(visible)
     {
+        if(!this.getEl()){
+            return;
+        }
+        
+        this.getEl().removeClass('hidden');
+        
+        if(visible){
+            return;
+        }
         
+        this.getEl().addClass('hidden');
     }
    
 });