From: Alan Date: Wed, 11 Jan 2023 04:23:39 +0000 (+0800) Subject: merge label code in text area and input X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=7c9e6523d345e30d188137d62519e586b42a8de3 merge label code in text area and input --- diff --git a/docs/src/Roo_bootstrap_form_ComboBox.js.html b/docs/src/Roo_bootstrap_form_ComboBox.js.html index b541a22c9d..750a57106b 100644 --- a/docs/src/Roo_bootstrap_form_ComboBox.js.html +++ b/docs/src/Roo_bootstrap_form_ComboBox.js.html @@ -502,14 +502,13 @@ cls : 'roo-required-indicator ' + (this.indicatorpos == 'right' ? 'right' : 'left') +'-indicator text-danger fa fa-lg fa-star', tooltip : 'This field is required' }; - /* - * why? - if (Roo.bootstrap.version == 4) { - indicator = { - tag : 'i', - style : 'display:none' - }; - }*/ + + if (this.allowBlank) { + indicator = { + tag : 'i', + style : 'display:none' + }; + } if (align ==='left' && this.fieldLabel.length) { cfg.cls += ' roo-form-group-label-left' + (Roo.bootstrap.version == 4 ? ' row' : ''); diff --git a/docs/src/Roo_bootstrap_form_TriggerField.js.html b/docs/src/Roo_bootstrap_form_TriggerField.js.html index dd8b67379e..979e5d5309 100644 --- a/docs/src/Roo_bootstrap_form_TriggerField.js.html +++ b/docs/src/Roo_bootstrap_form_TriggerField.js.html @@ -254,14 +254,14 @@ trigger.applyTo('my-field'); cls : 'roo-required-indicator ' + (this.indicatorpos == 'right' ? 'right' : 'left') +'-indicator text-danger fa fa-lg fa-star', tooltip : 'This field is required' }; - /* - if (Roo.bootstrap.version == 4) { - indicator = { - tag : 'i', - style : 'display:none' - }; + + if (this.allowBlank) { + indicator = { + tag : 'i', + style : 'display:none' + }; } - */ + if (align ==='left' && this.fieldLabel.length) {