Roo/bootstrap/Input.js
authoredward <edward@roojs.com>
Mon, 22 Feb 2016 08:46:53 +0000 (16:46 +0800)
committeredward <edward@roojs.com>
Mon, 22 Feb 2016 08:46:53 +0000 (16:46 +0800)
Roo/bootstrap/Input.js

index 2d6bd66..7bb586f 100644 (file)
@@ -764,7 +764,7 @@ 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.getValue().length){
+                if(this.getValue().length || this.forceFeedback){
                     this.el.select('.form-control-feedback', true).first().addClass([this.invalidFeedbackClass]);
                 }