@oliasoft-open-source/react-ui-library 4.20.6 → 4.20.7

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.
package/dist/index.js CHANGED
@@ -17372,7 +17372,7 @@ const standardizeSelectedOptions = (standardizedOptions, selectedOptions) => {
17372
17372
  const isSimpleOptions = (options) => Array.isArray(options) && options.some((o) => typeof o === "string" || typeof o === "number");
17373
17373
  const getFirstSelectedOptionIndex = (options, selectedOptions) => {
17374
17374
  const firstSelected = selectedOptions instanceof Array ? selectedOptions.length ? selectedOptions[0] : null : selectedOptions;
17375
- const firstSelectedValue = firstSelected === null || firstSelected === void 0 ? null : typeof firstSelected === "string" || typeof firstSelected === "number" ? firstSelected : firstSelected.value;
17375
+ const firstSelectedValue = firstSelected === null || firstSelected === void 0 ? null : typeof firstSelected === "string" || typeof firstSelected === "number" || typeof firstSelected === "boolean" ? firstSelected : firstSelected.value;
17376
17376
  const index2 = options.filter((o) => o.type !== MenuType.HEADING).findIndex((o) => {
17377
17377
  if (typeof o === "string" || typeof o === "number") {
17378
17378
  return o == firstSelectedValue;