diff --git a/src/case/combo/icontextvaluecombo/combo.icontextvalue.js b/src/case/combo/icontextvaluecombo/combo.icontextvalue.js index b69ad7307..ba3fead5b 100644 --- a/src/case/combo/icontextvaluecombo/combo.icontextvalue.js +++ b/src/case/combo/icontextvaluecombo/combo.icontextvalue.js @@ -67,7 +67,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, { }, _checkError: function (v) { - if(BI.isNotNull(v)) { + if(BI.isNull(v) || BI.isEmptyArray(v)) { + this.trigger.options.tipType = "success"; + this.element.removeClass("combo-error"); + } else { v = BI.isArray(v) ? v : [v]; var result = BI.find(this.options.items, function (idx, item) { return BI.contains(v, item.value); diff --git a/src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js b/src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js index 5ce41c6af..ba6376b03 100644 --- a/src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js +++ b/src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js @@ -124,7 +124,10 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, { }, _checkError: function (v) { - if(BI.isNotNull(v)) { + if(BI.isNull(v) || BI.isEmptyArray(v)) { + this.trigger.options.tipType = "success"; + this.element.removeClass("combo-error"); + } else { v = BI.isArray(v) ? v : [v]; var result = BI.find(this.options.items, function (idx, item) { return BI.contains(v, item.value); diff --git a/src/case/combo/textvaluecombo/combo.textvalue.js b/src/case/combo/textvaluecombo/combo.textvalue.js index 4dc9b330a..982b263ea 100644 --- a/src/case/combo/textvaluecombo/combo.textvalue.js +++ b/src/case/combo/textvaluecombo/combo.textvalue.js @@ -62,7 +62,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { }, _checkError: function (v) { - if(BI.isNotNull(v)) { + if(BI.isNull(v) || BI.isEmptyArray(v)) { + this.trigger.options.tipType = "success"; + this.element.removeClass("combo-error"); + } else { v = BI.isArray(v) ? v : [v]; var result = BI.find(this.options.items, function (idx, item) { return BI.contains(v, item.value);