diff --git a/.version b/.version index aac2dacab4..e96a87111c 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.12.1 \ No newline at end of file +0.12.2 \ No newline at end of file diff --git a/frontend/src/Editor/Components/DropDown.jsx b/frontend/src/Editor/Components/DropDown.jsx index ece706326b..2859e8275d 100644 --- a/frontend/src/Editor/Components/DropDown.jsx +++ b/frontend/src/Editor/Components/DropDown.jsx @@ -27,14 +27,18 @@ export const DropDown = function DropDown({ height, validate, properties, styles }, [isValid]); useEffect(() => { - setCurrentValue(value); - setExposedVariable('value', value); + let newValue = undefined; + if (values?.includes(value)) newValue = value; + + setCurrentValue(newValue); + setExposedVariable('value', newValue); // eslint-disable-next-line react-hooks/exhaustive-deps }, [value]); useEffect(() => { let newValue = undefined; - if (values?.includes(value)) newValue = value; + if (values?.includes(currentValue)) newValue = currentValue; + else if (values?.includes(value)) newValue = value; setCurrentValue(newValue); setExposedVariable('value', newValue); diff --git a/frontend/src/Editor/Components/Image.jsx b/frontend/src/Editor/Components/Image.jsx index 92db56dd24..8f6fc63529 100644 --- a/frontend/src/Editor/Components/Image.jsx +++ b/frontend/src/Editor/Components/Image.jsx @@ -1,7 +1,7 @@ import React from 'react'; import LazyLoad from 'react-lazyload'; -export const Image = function Image({ height, properties, styles }) { +export const Image = function Image({ height, properties, styles, fireEvent }) { const source = properties.source; const widgetVisibility = styles.visibility ?? true; @@ -12,7 +12,7 @@ export const Image = function Image({ height, properties, styles }) { return (