From 7aa8e281cdc6f02d0ea512bba149d2e11b12dc9b Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Tue, 3 Jan 2023 13:18:14 +0100 Subject: [PATCH] Filter blocks: Fix the dropdown indicator icon display for 'single option' mode. Closes #8075 --- assets/js/blocks/attribute-filter/block.tsx | 2 +- assets/js/blocks/rating-filter/block.tsx | 2 +- assets/js/blocks/stock-filter/block.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/blocks/attribute-filter/block.tsx b/assets/js/blocks/attribute-filter/block.tsx index 8373473f7ad..14f929ffd06 100644 --- a/assets/js/blocks/attribute-filter/block.tsx +++ b/assets/js/blocks/attribute-filter/block.tsx @@ -666,7 +666,7 @@ const AttributeFilterBlock = ( { ), } } /> - { multiple && ( + { checked.length === 0 && ! isLoading && ( ) } diff --git a/assets/js/blocks/rating-filter/block.tsx b/assets/js/blocks/rating-filter/block.tsx index 48cd815cba5..5cd6c310452 100644 --- a/assets/js/blocks/rating-filter/block.tsx +++ b/assets/js/blocks/rating-filter/block.tsx @@ -466,7 +466,7 @@ const RatingFilterBlock = ( { ), } } /> - { multiple && ( + { checked.length === 0 && ( ) } diff --git a/assets/js/blocks/stock-filter/block.tsx b/assets/js/blocks/stock-filter/block.tsx index 6717586e8fb..a920e130911 100644 --- a/assets/js/blocks/stock-filter/block.tsx +++ b/assets/js/blocks/stock-filter/block.tsx @@ -500,7 +500,7 @@ const StockStatusFilterBlock = ( { ), } } /> - { allowsMultipleOptions && ( + { checked.length === 0 && ( ) }