From 47d9c44f02be4b2114efab41d5c7b35bce698fcc Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 3 Dec 2018 16:08:53 +0800 Subject: [PATCH] Roo/bootstrap/TextArea.js --- Roo/bootstrap/TextArea.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/TextArea.js b/Roo/bootstrap/TextArea.js index 3bdbc0061d..3e26780047 100644 --- a/Roo/bootstrap/TextArea.js +++ b/Roo/bootstrap/TextArea.js @@ -315,7 +315,7 @@ Roo.extend(Roo.bootstrap.TextArea, Roo.bootstrap.Input, { return; } - this.el.removeClass([this.invalidClass, this.validClass]); + this.el.removeClass([this.invalidClass, this.validClass, 'is-valid', 'is-invalid']); var feedback = this.el.select('.form-control-feedback', true).first(); @@ -338,7 +338,12 @@ Roo.extend(Roo.bootstrap.TextArea, Roo.bootstrap.Input, { style : 'margin-right:5px;' }, label, true); } - + + if (Roo.bootstrap.version == 3) { + this.el.addClass(this.validClass); + } else { + this.inputEl().addClass('is-valid'); + } this.el.addClass(this.invalidClass); if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank){ -- 2.39.2