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
- if ((fixedValue === null || fixedValue === void 0 ? void 0 : fixedValue.length) > 0) {
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-componentbook",
3
- "version": "1.0.1-stage.419",
3
+ "version": "1.0.1-stage.420",
4
4
  "private": false,
5
5
  "description": "Reusable components",
6
6
  "main": "build/index.js",