Roo/bootstrap/form/Input.js
authorleon <leon@roojs.com>
Thu, 4 May 2023 07:26:08 +0000 (15:26 +0800)
committerleon <leon@roojs.com>
Thu, 4 May 2023 07:26:08 +0000 (15:26 +0800)
Roo/bootstrap/form/Input.js

index fca04d4..e47e1f5 100644 (file)
@@ -971,6 +971,7 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
         if(feedback){
             this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]);
             feedback.update('');
+            feedback.hide();
         }
         
         if(this.indicator){
@@ -1025,6 +1026,7 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
             this.el.select('.form-control-feedback', true).first().removeClass(
                     [this.invalidFeedbackClass, this.validFeedbackClass]);
             feedback.update('');
+            feedback.hide();
         }
 
         if(this.disabled){
@@ -1061,6 +1063,8 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
                 if(!this.allowBlank && !this.getRawValue().length){
                     feedback.update(this.blankText);
                 }
+
+                feedback.show();
                 
             }