diff --git a/dist/bundle.js b/dist/bundle.js index bf21151a8..ae1e1a56c 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -104175,9 +104175,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) { @@ -104286,8 +104284,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 61c1cd36b..2ac5ebfc1 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); },