diff --git a/dist/bundle.js b/dist/bundle.js index 47438825a..bf59f2802 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -104159,9 +104159,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) { @@ -104270,8 +104268,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 7da7f2e41..70d76bb8c 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -17648,9 +17648,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) { @@ -17759,8 +17757,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); },