Skip to content

Commit

Permalink
fix(dropdown.tsx): transient instead to make the dom happy
Browse files Browse the repository at this point in the history
  • Loading branch information
j-leidy committed Jul 21, 2023
1 parent a2847bb commit 9492550
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ const Dropdown = ({
const infoIcons = (
<>
{values.length > 0 && valueCountCloseIconHandler()}
<StyledArrowIconContainer ref={arrowIconRef} {...arrowIconProps} isOpen={isOpen}>
<StyledArrowIconContainer ref={arrowIconRef} {...arrowIconProps} $isOpen={isOpen}>
<Icon path={isOpen ? mdiMenuUp : mdiMenuDown} size="1.25em" />
</StyledArrowIconContainer>
</>
Expand Down Expand Up @@ -927,7 +927,8 @@ const Dropdown = ({
const optionsToRender: OptionProps[] =
searchable && searchFiltersOptions ? filteredOptions : options;
const persistPlaceholder = !showSelectedValues && !focusWithin;
const blurredEmptyArrEmptySearch = searchCharacterCount === 0 && (!values || !values.length) && !focusWithin;
const blurredEmptyArrEmptySearch =
searchCharacterCount === 0 && (!values || !values.length) && !focusWithin;
return (
<StyledContainer
id={`${name}-container`}
Expand Down Expand Up @@ -958,8 +959,7 @@ const Dropdown = ({
...(valueContainerProps ? valueContainerProps.containerProps : {}),
}}
>
{(blurredEmptyArrEmptySearch ||
persistPlaceholder) && (
{(blurredEmptyArrEmptySearch || persistPlaceholder) && (
<StyledPlaceholder
ref={placeholderRef}
id={`${name}-placeholder`}
Expand Down

0 comments on commit 9492550

Please sign in to comment.