oa-componentbook 1.0.1-stage.419 → 1.0.1-stage.420
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.
|
@@ -293,7 +293,8 @@ function CustomSelect(_ref) {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
// If fixedValue has values, push them to the beginning of newlySelectedOptions
|
|
296
|
-
|
|
296
|
+
// BUT only if "All" is not currently selected
|
|
297
|
+
if ((fixedValue === null || fixedValue === void 0 ? void 0 : fixedValue.length) > 0 && !(newlySelectedOptions !== null && newlySelectedOptions !== void 0 && newlySelectedOptions.includes(allText))) {
|
|
297
298
|
fixedValue.forEach(val => safeUnshift(newlySelectedOptions, val));
|
|
298
299
|
}
|
|
299
300
|
const optionsWithoutAllText = newlySelectedOptions.filter(option => option !== allText);
|