@firestitch/filter 12.3.1 → 12.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -847,11 +847,14 @@
|
|
|
847
847
|
};
|
|
848
848
|
MultipleSelectItem.prototype._validateModel = function () {
|
|
849
849
|
var _this = this;
|
|
850
|
-
|
|
850
|
+
var possibleValues = common.filter(this.model || [], function (item) {
|
|
851
851
|
return _this.values.find(function (value) {
|
|
852
852
|
return value.value == item;
|
|
853
853
|
});
|
|
854
854
|
});
|
|
855
|
+
if (!common.isArrayEqual(this.model, possibleValues)) {
|
|
856
|
+
this.model = possibleValues;
|
|
857
|
+
}
|
|
855
858
|
};
|
|
856
859
|
MultipleSelectItem.prototype._clearValue = function (defaultValue) {
|
|
857
860
|
if (defaultValue === void 0) { defaultValue = undefined; }
|