From f0bd3e3c38458d41e8327e8e6ed693710c81f066 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 11 Jan 2023 13:04:16 +0800 Subject: [PATCH] fix mandatory star on html/textarea --- docs/src/Roo_bootstrap_form_TextArea.js.html | 35 ++++++++++---------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/docs/src/Roo_bootstrap_form_TextArea.js.html b/docs/src/Roo_bootstrap_form_TextArea.js.html index 81a1eae221..b39421f305 100644 --- a/docs/src/Roo_bootstrap_form_TextArea.js.html +++ b/docs/src/Roo_bootstrap_form_TextArea.js.html @@ -171,11 +171,11 @@ } var label = this.el.select('label', true).first(); - var icon = this.el.select('i.fa-star', true).first(); + //var icon = this.el.select('i.fa-star', true).first(); - if(label && icon){ - icon.remove(); - } + //if(label && icon){ + // icon.remove(); + //} this.el.removeClass( this.validClass); this.inputEl().removeClass('is-invalid'); @@ -217,9 +217,9 @@ var label = this.el.select('label', true).first(); var icon = this.el.select('i.fa-star', true).first(); - if(label && icon){ - icon.remove(); - } + //if(label && icon){ + // icon.remove(); + //} if (Roo.bootstrap.version == 3) { this.el.addClass(this.validClass); } else { @@ -265,16 +265,17 @@ } var label = this.el.select('label', true).first(); - var icon = this.el.select('i.fa-star', true).first(); - - if(!this.getValue().length && label && !icon){ - this.el.createChild({ - tag : 'i', - cls : 'text-danger fa fa-lg fa-star', - tooltip : 'This field is required', - style : 'margin-right:5px;' - }, label, true); - } + //var icon = this.el.select('i.fa-star', true).first(); + + //if(!this.getValue().length && label && !icon){ + /* this.el.createChild({ + tag : 'i', + cls : 'text-danger fa fa-lg fa-star', + tooltip : 'This field is required', + style : 'margin-right:5px;' + }, label, true); + */ + //} if (Roo.bootstrap.version == 3) { this.el.addClass(this.invalidClass); -- 2.39.2