sag_components 2.0.0-beta290 → 2.0.0-beta291

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
@@ -58053,7 +58053,7 @@ const OverlayDropdown = _ref => {
58053
58053
  if (!showLabelOnTop && open) {
58054
58054
  return "";
58055
58055
  }
58056
- if (hasValue) {
58056
+ if (hasValue || customDisplayText) {
58057
58057
  return label;
58058
58058
  }
58059
58059
  return labelEmptyValue;
@@ -58075,15 +58075,15 @@ const OverlayDropdown = _ref => {
58075
58075
  return "";
58076
58076
  };
58077
58077
  const getDisplayText = () => {
58078
+ if (open) {
58079
+ return placeHolder;
58080
+ }
58078
58081
  if (customDisplayText) {
58079
58082
  return customDisplayText;
58080
58083
  }
58081
58084
  if (selected) {
58082
58085
  return selected.label;
58083
58086
  }
58084
- if (open) {
58085
- return placeHolder;
58086
- }
58087
58087
  return '';
58088
58088
  };
58089
58089
  return /*#__PURE__*/React__default["default"].createElement(DropdownContainer, {
@@ -58094,7 +58094,7 @@ const OverlayDropdown = _ref => {
58094
58094
  className: "Label",
58095
58095
  isFocused: open,
58096
58096
  labelColor: labelColor,
58097
- hasValue: hasValue,
58097
+ hasValue: hasValue || !!customDisplayText,
58098
58098
  disabled: disabled,
58099
58099
  showLabelOnTop: showLabelOnTop,
58100
58100
  isDarkerBackground: isDarkerBackground
@@ -58113,7 +58113,7 @@ const OverlayDropdown = _ref => {
58113
58113
  className: "selected",
58114
58114
  onMouseEnter: () => setHoveredText(customDisplayText || selected?.label),
58115
58115
  onMouseLeave: () => setHoveredText(null),
58116
- color: !selected && open ? placeHolderColor : "inherit"
58116
+ color: !hasValue && !customDisplayText && open ? placeHolderColor : "inherit"
58117
58117
  }, getDisplayText()), open ? /*#__PURE__*/React__default["default"].createElement(MenuItemUpIcon, {
58118
58118
  width: "12px",
58119
58119
  height: "12px",