Roo/bootstrap/Input.js
authorAlan Knowles <alan@roojs.com>
Mon, 14 Dec 2020 05:00:24 +0000 (13:00 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 14 Dec 2020 05:00:24 +0000 (13:00 +0800)
Roo/bootstrap/Input.js

index eef59c6..74c5ca8 100644 (file)
@@ -396,8 +396,8 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
             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 > 3 ) {
-            indicator.cls += 'display-none'; // are we just hiding it?
+        if (this.allowBlank > 3 ) {
+            indicator = { tag: 'i', cls : 'display-none'; }
         }
         if (align ==='left' && this.fieldLabel.length) {