x-ui-design 0.4.11 → 0.4.13

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.esm.js CHANGED
@@ -3535,7 +3535,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3535
3535
  value: searchQuery,
3536
3536
  onChange: handleSearch,
3537
3537
  placeholder: "Search..."
3538
- }), !loading && /*#__PURE__*/React.createElement("div", {
3538
+ }), !loading && open && /*#__PURE__*/React.createElement("div", {
3539
3539
  className: `${prefixCls}-options`,
3540
3540
  style: {
3541
3541
  maxHeight: listHeight,
@@ -3553,7 +3553,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3553
3553
  const selectedOption = (() => {
3554
3554
  const option = extractedOptions.find(e => e.value === selected || e.label === selected || e.children === selected);
3555
3555
  return option?.children || option?.label || option?.value || null;
3556
- })();
3556
+ })() || selected || null;
3557
3557
  return /*#__PURE__*/React.createElement("div", {
3558
3558
  id: id,
3559
3559
  ref: selectRef,