diff --git a/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx b/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx index d9b9573d2..b12cef130 100644 --- a/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx @@ -149,54 +149,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 1a769462f..2e912e6e5 100644 --- a/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx @@ -159,54 +159,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 74606a6ae..5077b0783 100644 --- a/src/components/ItaliaTheme/Blocks/UOSearch/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/UOSearch/Body.jsx @@ -143,54 +143,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 ? (