diff --git a/dist/bundle.js b/dist/bundle.js index a174d494e..6f4b10736 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -68130,7 +68130,8 @@ BI.StaticCombo = BI.inherit(BI.Widget, { type: "bi.select_text_trigger", items: o.items, height: o.height, - text: o.text + text: o.text, + readonly: true }); this.popup = BI.createWidget({ type: "bi.text_value_combo_popup", @@ -76482,7 +76483,9 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, { }, setValue: function (vals) { - this.trigger.setText(this._digest(vals, this.options.items)); + if (!this.isReadOnly()) { + this.trigger.setText(this._digest(vals, this.options.items)); + } }, populate: function (items) { diff --git a/dist/case.js b/dist/case.js index e5cdda59d..65d0ca0ef 100644 --- a/dist/case.js +++ b/dist/case.js @@ -5615,7 +5615,8 @@ BI.StaticCombo = BI.inherit(BI.Widget, { type: "bi.select_text_trigger", items: o.items, height: o.height, - text: o.text + text: o.text, + readonly: true }); this.popup = BI.createWidget({ type: "bi.text_value_combo_popup", @@ -13967,7 +13968,9 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, { }, setValue: function (vals) { - this.trigger.setText(this._digest(vals, this.options.items)); + if (!this.isReadOnly()) { + this.trigger.setText(this._digest(vals, this.options.items)); + } }, populate: function (items) { diff --git a/dist/fineui.js b/dist/fineui.js index e410ee9d9..6ee688f21 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -69884,7 +69884,8 @@ BI.StaticCombo = BI.inherit(BI.Widget, { type: "bi.select_text_trigger", items: o.items, height: o.height, - text: o.text + text: o.text, + readonly: true }); this.popup = BI.createWidget({ type: "bi.text_value_combo_popup", @@ -78236,7 +78237,9 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, { }, setValue: function (vals) { - this.trigger.setText(this._digest(vals, this.options.items)); + if (!this.isReadOnly()) { + this.trigger.setText(this._digest(vals, this.options.items)); + } }, populate: function (items) { diff --git a/src/case/combo/staticcombo/combo.static.js b/src/case/combo/staticcombo/combo.static.js index 496280e01..73db45581 100644 --- a/src/case/combo/staticcombo/combo.static.js +++ b/src/case/combo/staticcombo/combo.static.js @@ -23,7 +23,8 @@ BI.StaticCombo = BI.inherit(BI.Widget, { type: "bi.select_text_trigger", items: o.items, height: o.height, - text: o.text + text: o.text, + readonly: true }); this.popup = BI.createWidget({ type: "bi.text_value_combo_popup", diff --git a/src/case/trigger/trigger.text.select.js b/src/case/trigger/trigger.text.select.js index 206fbbb48..d1ffd0712 100644 --- a/src/case/trigger/trigger.text.select.js +++ b/src/case/trigger/trigger.text.select.js @@ -45,7 +45,9 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, { }, setValue: function (vals) { - this.trigger.setText(this._digest(vals, this.options.items)); + if (!this.isReadOnly()) { + this.trigger.setText(this._digest(vals, this.options.items)); + } }, populate: function (items) {