@elementor/editor-components 4.1.0-790 → 4.1.0-791
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -2188,7 +2188,7 @@ function OverrideControl({ overridableProp }) {
|
|
|
2188
2188
|
const propTypeSchema = createTopLevelObjectType({
|
|
2189
2189
|
schema: { [overridableProp.overrideKey]: propType }
|
|
2190
2190
|
});
|
|
2191
|
-
const setValue = (newValue) => {
|
|
2191
|
+
const setValue = (newValue, options, meta) => {
|
|
2192
2192
|
let newPropValue = getTempNewValueForDynamicProp(
|
|
2193
2193
|
propType,
|
|
2194
2194
|
propValue,
|
|
@@ -2205,10 +2205,14 @@ function OverrideControl({ overridableProp }) {
|
|
|
2205
2205
|
if (!matchingOverride) {
|
|
2206
2206
|
newOverrides = [...newOverrides, newOverrideValue];
|
|
2207
2207
|
}
|
|
2208
|
-
setInstanceValue(
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2208
|
+
setInstanceValue(
|
|
2209
|
+
{
|
|
2210
|
+
...instanceValue,
|
|
2211
|
+
overrides: componentInstanceOverridesPropTypeUtil.create(newOverrides)
|
|
2212
|
+
},
|
|
2213
|
+
options,
|
|
2214
|
+
meta
|
|
2215
|
+
);
|
|
2212
2216
|
const overridableValue = componentOverridablePropTypeUtil.extract(newOverrideValue);
|
|
2213
2217
|
if (overridableValue && wrappingComponentId) {
|
|
2214
2218
|
if (overridableProp.originPropFields) {
|