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

Commit

Permalink
Make the inlineInput default to false to avoid changing existing bloc…
Browse files Browse the repository at this point in the history
…k behaviour (#6957)
  • Loading branch information
albarin authored Aug 23, 2022
1 parent 71ce884 commit 89175d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/blocks/price-filter/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"inlineInput": {
"type": "boolean",
"default": true
"default": false
},
"showFilterButton": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion assets/js/blocks/price-filter/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89175d2

Please sign in to comment.