From 89175d2fdfde24b63e2e577c454f12a96fef7df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Tue, 23 Aug 2022 12:10:46 +0200 Subject: [PATCH] Make the inlineInput default to false to avoid changing existing block behaviour (#6957) --- assets/js/blocks/price-filter/block.json | 2 +- assets/js/blocks/price-filter/frontend.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/blocks/price-filter/block.json b/assets/js/blocks/price-filter/block.json index d22b929c524..2bfd91e8580 100644 --- a/assets/js/blocks/price-filter/block.json +++ b/assets/js/blocks/price-filter/block.json @@ -29,7 +29,7 @@ }, "inlineInput": { "type": "boolean", - "default": true + "default": false }, "showFilterButton": { "type": "boolean", diff --git a/assets/js/blocks/price-filter/frontend.ts b/assets/js/blocks/price-filter/frontend.ts index 6d38ed17078..ef69736b03d 100644 --- a/assets/js/blocks/price-filter/frontend.ts +++ b/assets/js/blocks/price-filter/frontend.ts @@ -14,7 +14,7 @@ const getProps = ( el: HTMLElement ) => { return { attributes: { showInputFields: el.dataset.showinputfields === 'true', - inlineInput: el.dataset.inlineInput !== 'false', + inlineInput: el.dataset.inlineInput === 'true', showFilterButton: el.dataset.showfilterbutton === 'true', heading: el.dataset.heading || blockAttributes.heading.default, headingLevel: el.dataset.headingLevel