Changed Roo/bootstrap/form/Input.js
authorleon <leon@roojs.com>
Wed, 10 May 2023 04:12:14 +0000 (12:12 +0800)
committerleon <leon@roojs.com>
Wed, 10 May 2023 04:12:14 +0000 (12:12 +0800)
Roo/bootstrap/form/Input.js

index 6dc7097..562943e 100644 (file)
@@ -813,6 +813,18 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
         // this.validate();
         this.el.removeClass([this.invalidClass, this.validClass]);
         this.inputEl().removeClass(['is-valid', 'is-invalid']);
+
+        if(this.hasFeedback && this.inputType != 'hidden'){
+            
+            var feedback = this.el.select('.form-control-feedback', true).first();
+            
+            if(feedback){
+                this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]);
+                feedback.update('');
+                feedback.hide();
+            }
+            
+        }
     },
      /**
      * Returns the name of the field