oa-componentbook 1.0.1-stage.417 → 1.0.1-stage.418
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.
|
@@ -282,14 +282,15 @@ function CustomSelect(_ref) {
|
|
|
282
282
|
}
|
|
283
283
|
} else if (value === allText) {
|
|
284
284
|
newlySelectedOptions.length = 0; // Emptying the array.
|
|
285
|
-
// If fixedValue has values, push them to newlySelectedOptions
|
|
286
|
-
if ((fixedValue === null || fixedValue === void 0 ? void 0 : fixedValue.length) > 0) {
|
|
287
|
-
fixedValue.forEach(val => safePush(newlySelectedOptions, val));
|
|
288
|
-
}
|
|
289
285
|
} else {
|
|
290
286
|
var _newlySelectedOptions2;
|
|
291
287
|
newlySelectedOptions.splice((_newlySelectedOptions2 = newlySelectedOptions.indexOf) === null || _newlySelectedOptions2 === void 0 ? void 0 : _newlySelectedOptions2.call(newlySelectedOptions, value), 1);
|
|
292
288
|
}
|
|
289
|
+
|
|
290
|
+
// If fixedValue has values, push them to newlySelectedOptions
|
|
291
|
+
if ((fixedValue === null || fixedValue === void 0 ? void 0 : fixedValue.length) > 0) {
|
|
292
|
+
fixedValue.forEach(val => safePush(newlySelectedOptions, val));
|
|
293
|
+
}
|
|
293
294
|
const optionsWithoutAllText = newlySelectedOptions.filter(option => option !== allText);
|
|
294
295
|
|
|
295
296
|
// Passing the data to parent, using a callback.
|