Roo/bootstrap/Input.js
authoredward <edward@roojs.com>
Mon, 28 May 2018 09:52:08 +0000 (17:52 +0800)
committeredward <edward@roojs.com>
Mon, 28 May 2018 09:52:08 +0000 (17:52 +0800)
Roo/bootstrap/Input.js

index 58beb68..7917f7d 100644 (file)
@@ -879,7 +879,12 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
         if(feedback){
             this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]);
         }
-
+        
+        if(this.indicator){
+            this.indicator.removeClass('visible');
+            this.indicator.addClass('invisible');
+        }
+        
         if(this.disabled){
             return;
         }
@@ -888,11 +893,6 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
             return;
         }
         
-        if(this.indicator){
-            this.indicator.removeClass('visible');
-            this.indicator.addClass('invisible');
-        }
-        
         this.el.addClass(this.validClass);
         
         if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank && (this.getValue().length || this.forceFeedback)){