Roo/bootstrap/form/TextArea.js
authorleon <leon@roojs.com>
Fri, 21 Apr 2023 02:43:17 +0000 (10:43 +0800)
committerleon <leon@roojs.com>
Fri, 21 Apr 2023 02:43:17 +0000 (10:43 +0800)
Roo/bootstrap/form/TextArea.js

index 7782bc4..57b81ab 100644 (file)
@@ -295,8 +295,12 @@ Roo.extend(Roo.bootstrap.form.TextArea, Roo.bootstrap.form.Input,  {
             if(feedback){
                 this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]);
                 
-                if(this.getValue().length || this.forceFeedback){
-                    this.el.select('.form-control-feedback', true).first().addClass([this.invalidFeedbackClass]);
+                this.el.select('.form-control-feedback', true).first().addClass([this.invalidFeedbackClass]);
+
+                feedback.update(this.invalidText);
+
+                if(!this.allowBlank && !this.getRawValue().length){
+                    feedback.update(this.blankText);
                 }
                 
             }