@elementor/editor-editing-panel 4.1.0-801 → 4.1.0-802
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
|
@@ -728,6 +728,12 @@ function useCreateAndApplyClass() {
|
|
|
728
728
|
unapplyClass(createdId);
|
|
729
729
|
deleteAction?.(createdId);
|
|
730
730
|
setActiveId(prevActiveId);
|
|
731
|
+
},
|
|
732
|
+
redo: ({ classLabel }, { createdId }) => {
|
|
733
|
+
const prevActiveId = activeId;
|
|
734
|
+
createAction(classLabel, [], createdId);
|
|
735
|
+
applyClass(createdId);
|
|
736
|
+
return { prevActiveId, createdId };
|
|
731
737
|
}
|
|
732
738
|
},
|
|
733
739
|
{
|
|
@@ -1557,7 +1563,7 @@ function useUndoableActions({
|
|
|
1557
1563
|
return { styleId, provider, prevProps };
|
|
1558
1564
|
}
|
|
1559
1565
|
function undo(_, { styleId, provider, prevProps }) {
|
|
1560
|
-
provider.actions.updateProps?.({ id: styleId, meta, props: prevProps }, { elementId });
|
|
1566
|
+
provider.actions.updateProps?.({ id: styleId, meta, props: prevProps, mode: "replace" }, { elementId });
|
|
1561
1567
|
}
|
|
1562
1568
|
}, [elementId, breakpoint, state, classesProp]);
|
|
1563
1569
|
}
|