Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Filter blocks: Fix the dropdown indicator icon display for 'single op…
Browse files Browse the repository at this point in the history
…tion' mode. Closes #8075
  • Loading branch information
danieldudzic committed Jan 3, 2023
1 parent bff4b96 commit 7aa8e28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/blocks/attribute-filter/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ const AttributeFilterBlock = ( {
),
} }
/>
{ multiple && (
{ checked.length === 0 && ! isLoading && (
<Icon icon={ chevronDown } size={ 30 } />
) }
</>
Expand Down
2 changes: 1 addition & 1 deletion assets/js/blocks/rating-filter/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ const RatingFilterBlock = ( {
),
} }
/>
{ multiple && (
{ checked.length === 0 && (
<Icon icon={ chevronDown } size={ 30 } />
) }
</>
Expand Down
2 changes: 1 addition & 1 deletion assets/js/blocks/stock-filter/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ const StockStatusFilterBlock = ( {
),
} }
/>
{ allowsMultipleOptions && (
{ checked.length === 0 && (
<Icon icon={ chevronDown } size={ 30 } />
) }
</>
Expand Down

0 comments on commit 7aa8e28

Please sign in to comment.