Roo/bootstrap/Input.js
authorjohn <john@roojs.com>
Thu, 1 Feb 2018 03:26:53 +0000 (11:26 +0800)
committerjohn <john@roojs.com>
Thu, 1 Feb 2018 03:26:53 +0000 (11:26 +0800)
Roo/bootstrap/Input.js

index 9821c6b..1537c8a 100644 (file)
@@ -939,7 +939,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 || this.forceFeedback){
+                if(this.getValue() != null || this.getValue().length || this.forceFeedback){
                     this.el.select('.form-control-feedback', true).first().addClass([this.invalidFeedbackClass]);
                 }