analytica-frontend-lib 1.4.3 → 1.4.5

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.
@@ -572,12 +572,11 @@ var Select = ({
572
572
  };
573
573
  }, [open, selectId, setOpen]);
574
574
  (0, import_react4.useEffect)(() => {
575
- if (propValue) {
576
- setValue(propValue);
577
- const label2 = findLabelForValue(children, propValue);
578
- if (label2) store.setState({ selectedLabel: label2 });
579
- }
580
- }, [propValue]);
575
+ if (propValue === void 0) return;
576
+ setValue(propValue);
577
+ const label2 = findLabelForValue(children, propValue);
578
+ store.setState({ selectedLabel: label2 ?? "" });
579
+ }, [propValue, children]);
581
580
  const sizeClasses = SIZE_CLASSES3[size];
582
581
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: cn("w-full", className), children: [
583
582
  label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(