Add reset button in the editor for product attributer filter (https://github.com/woocommerce/woocommerce-blocks/pull/8285)
Co-authored-by: Niels Lange <info@nielslange.de>
This commit is contained in:
parent
30a987a27a
commit
883d856c28
|
@ -685,7 +685,7 @@ const AttributeFilterBlock = ( {
|
|||
</div>
|
||||
|
||||
<div className="wc-block-attribute-filter__actions">
|
||||
{ checked.length > 0 && ! isLoading && (
|
||||
{ ( checked.length > 0 || isEditor ) && ! isLoading && (
|
||||
<FilterResetButton
|
||||
onClick={ () => {
|
||||
setChecked( [] );
|
||||
|
|
Loading…
Reference in New Issue