diff --git a/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx b/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx index 8d2a6be50..d240c6a01 100644 --- a/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx @@ -153,54 +153,60 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { 'public-ui': inEditMode, })} > -
-
- {filterOne && ( - <> - {React.createElement(filterOne.widget.component, { - ...filterOne.widget?.props, - id: 'filterOne', - onChange: (filter, value) => { +
{ + event.preventDefault(); + doRequest(1); + }} + > +
+
+ {filterOne && ( + <> + {React.createElement(filterOne.widget.component, { + ...filterOne.widget?.props, + id: 'filterOne', + onChange: (filter, value) => { + dispatchFilter({ + filter: filter, + value: value, + }); + }, + })} + + )} + {filterTwo && + React.createElement(filterTwo.widget?.component, { + ...filterTwo.widget?.props, + id: 'filterTwo', + onChange: (filter, value) => dispatchFilter({ filter: filter, value: value, - }); - }, + }), })} - - )} - {filterTwo && - React.createElement(filterTwo.widget?.component, { - ...filterTwo.widget?.props, - id: 'filterTwo', - onChange: (filter, value) => - dispatchFilter({ - filter: filter, - value: value, - }), - })} - {filterThree && - React.createElement(filterThree.widget?.component, { - ...filterThree.widget?.props, - id: 'filterThree', - onChange: (filter, value) => - dispatchFilter({ - filter: filter, - value: value, - }), - })} - - + {filterThree && + React.createElement(filterThree.widget?.component, { + ...filterThree.widget?.props, + id: 'filterThree', + onChange: (filter, value) => + dispatchFilter({ + filter: filter, + value: value, + }), + })} + + +
-
+
{!loading ? ( diff --git a/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx b/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx index 83f5494fa..177c3c250 100644 --- a/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx @@ -164,54 +164,60 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { 'public-ui': inEditMode, })} > -
-
- {filterOne && ( - <> - {React.createElement(filterOne.widget.component, { - ...filterOne.widget?.props, - id: 'filterOne', - onChange: (filter, value) => { +
{ + event.preventDefault(); + doRequest(1); + }} + > +
+
+ {filterOne && ( + <> + {React.createElement(filterOne.widget.component, { + ...filterOne.widget?.props, + id: 'filterOne', + onChange: (filter, value) => { + dispatchFilter({ + filter: filter, + value: value, + }); + }, + })} + + )} + {filterTwo && + React.createElement(filterTwo.widget?.component, { + ...filterTwo.widget?.props, + id: 'filterTwo', + onChange: (filter, value) => dispatchFilter({ filter: filter, value: value, - }); - }, + }), })} - - )} - {filterTwo && - React.createElement(filterTwo.widget?.component, { - ...filterTwo.widget?.props, - id: 'filterTwo', - onChange: (filter, value) => - dispatchFilter({ - filter: filter, - value: value, - }), - })} - {filterThree && - React.createElement(filterThree.widget?.component, { - ...filterThree.widget?.props, - id: 'filterThree', - onChange: (filter, value) => - dispatchFilter({ - filter: filter, - value: value, - }), - })} - - + {filterThree && + React.createElement(filterThree.widget?.component, { + ...filterThree.widget?.props, + id: 'filterThree', + onChange: (filter, value) => + dispatchFilter({ + filter: filter, + value: value, + }), + })} + + +
-
+
{!loading ? ( diff --git a/src/components/ItaliaTheme/Blocks/UOSearch/Body.jsx b/src/components/ItaliaTheme/Blocks/UOSearch/Body.jsx index 1403d88e8..df22ad239 100644 --- a/src/components/ItaliaTheme/Blocks/UOSearch/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/UOSearch/Body.jsx @@ -147,54 +147,60 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { 'public-ui': inEditMode, })} > -
-
- {filterOne && ( - <> - {React.createElement(filterOne.widget.component, { - ...filterOne.widget?.props, - id: 'filterOne', - onChange: (filter, value) => { +
{ + event.preventDefault(); + doRequest(1); + }} + > +
+
+ {filterOne && ( + <> + {React.createElement(filterOne.widget.component, { + ...filterOne.widget?.props, + id: 'filterOne', + onChange: (filter, value) => { + dispatchFilter({ + filter: filter, + value: value, + }); + }, + })} + + )} + {filterTwo && + React.createElement(filterTwo.widget?.component, { + ...filterTwo.widget?.props, + id: 'filterTwo', + onChange: (filter, value) => dispatchFilter({ filter: filter, value: value, - }); - }, + }), })} - - )} - {filterTwo && - React.createElement(filterTwo.widget?.component, { - ...filterTwo.widget?.props, - id: 'filterTwo', - onChange: (filter, value) => - dispatchFilter({ - filter: filter, - value: value, - }), - })} - {filterThree && - React.createElement(filterThree.widget?.component, { - ...filterThree.widget?.props, - id: 'filterThree', - onChange: (filter, value) => - dispatchFilter({ - filter: filter, - value: value, - }), - })} - - + {filterThree && + React.createElement(filterThree.widget?.component, { + ...filterThree.widget?.props, + id: 'filterThree', + onChange: (filter, value) => + dispatchFilter({ + filter: filter, + value: value, + }), + })} + + +
-
+
{!loading ? (