diff --git a/dist/bundle.js b/dist/bundle.js index ee3c8f9b4..36e7f2031 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -104161,9 +104161,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { }, _assertValue: function (val) { - val || (val = {}); - val.type || (val.type = BI.Selection.Single); - val.value || (val.value = []); + val || (val = ""); }, _makeMap: function (values) { @@ -104272,8 +104270,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { // this.trigger.adjustView(); }, setValue: function (v) { - this.storeValue = v || {}; - this._assertValue(this.storeValue); + this.storeValue = v || ""; this.adapter.setValue(this.storeValue); this.trigger.setValue(this.storeValue); }, diff --git a/dist/widget.js b/dist/widget.js index 62520f30e..407381314 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -17659,9 +17659,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { }, _assertValue: function (val) { - val || (val = {}); - val.type || (val.type = BI.Selection.Single); - val.value || (val.value = []); + val || (val = ""); }, _makeMap: function (values) { @@ -17770,8 +17768,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { // this.trigger.adjustView(); }, setValue: function (v) { - this.storeValue = v || {}; - this._assertValue(this.storeValue); + this.storeValue = v || ""; this.adapter.setValue(this.storeValue); this.trigger.setValue(this.storeValue); }, diff --git a/src/widget/singleselect/singleselectlist.insert.js b/src/widget/singleselect/singleselectlist.insert.js index 2236c4e13..2b77b1fdd 100644 --- a/src/widget/singleselect/singleselectlist.insert.js +++ b/src/widget/singleselect/singleselectlist.insert.js @@ -190,9 +190,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { }, _assertValue: function (val) { - val || (val = {}); - val.type || (val.type = BI.Selection.Single); - val.value || (val.value = []); + val || (val = ""); }, _makeMap: function (values) { @@ -301,8 +299,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { // this.trigger.adjustView(); }, setValue: function (v) { - this.storeValue = v || {}; - this._assertValue(this.storeValue); + this.storeValue = v || ""; this.adapter.setValue(this.storeValue); this.trigger.setValue(this.storeValue); },