From 1712859dc566c999eea59bccb550efa42bc8a06c Mon Sep 17 00:00:00 2001 From: leon Date: Tue, 28 Feb 2023 11:50:52 +0800 Subject: [PATCH] Roo/bootstrap/form/TextArea.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/form/TextArea.js | 2 -- roojs-bootstrap-debug.js | 2 -- roojs-bootstrap.js | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Roo/bootstrap/form/TextArea.js b/Roo/bootstrap/form/TextArea.js index 93a64e8e50..2c35437f1b 100644 --- a/Roo/bootstrap/form/TextArea.js +++ b/Roo/bootstrap/form/TextArea.js @@ -260,8 +260,6 @@ Roo.extend(Roo.bootstrap.form.TextArea, Roo.bootstrap.form.Input, { this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]); } - Roo.log('ALLOW BLANK'); - Roo.log(this.allowBlank); if(this.disabled || this.allowBlank){ return; } diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 79bbb0e704..64b1f740dc 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -13657,8 +13657,6 @@ Roo.extend(Roo.bootstrap.form.TextArea, Roo.bootstrap.form.Input, { this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]); } - Roo.log('ALLOW BLANK'); - Roo.log(this.allowBlank); if(this.disabled || this.allowBlank){ return; } diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 37a1f5df2d..eb34aee13e 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -586,7 +586,7 @@ if(A){this.el.select('.form-control-feedback',true).first().removeClass([this.in if(Roo.bootstrap.version==3){this.el.addClass(this.validClass);}else{this.inputEl().addClass('is-valid');}if(this.hasFeedback&&this.inputType!='hidden'&&!this.allowBlank&&(this.getValue().length||this.forceFeedback)){var A=this.el.select('.form-control-feedback',true).first(); if(A){this.el.select('.form-control-feedback',true).first().removeClass([this.invalidFeedbackClass,this.validFeedbackClass]);this.el.select('.form-control-feedback',true).first().addClass([this.validFeedbackClass]);}}this.fireEvent('valid',this);},markInvalid:function(A){if(!this.el||this.preventMark){return; }this.el.removeClass([this.invalidClass,this.validClass]);this.inputEl().removeClass(['is-valid','is-invalid']);var B=this.el.select('.form-control-feedback',true).first();if(B){this.el.select('.form-control-feedback',true).first().removeClass([this.invalidFeedbackClass,this.validFeedbackClass]); -}Roo.log('ALLOW BLANK');Roo.log(this.allowBlank);if(this.disabled||this.allowBlank){return;}var C=this.el.select('label',true).first();if(Roo.bootstrap.version==3){this.el.addClass(this.invalidClass);}else{this.inputEl().addClass('is-invalid');}if(this.hasFeedback&&this.inputType!='hidden'&&!this.allowBlank){var B=this.el.select('.form-control-feedback',true).first(); +}if(this.disabled||this.allowBlank){return;}var C=this.el.select('label',true).first();if(Roo.bootstrap.version==3){this.el.addClass(this.invalidClass);}else{this.inputEl().addClass('is-invalid');}if(this.hasFeedback&&this.inputType!='hidden'&&!this.allowBlank){var B=this.el.select('.form-control-feedback',true).first(); if(B){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.fireEvent('invalid',this,A);}}); // Roo/bootstrap/form/TriggerField.js -- 2.39.2