@elementor/editor-editing-panel 3.32.0-75 → 3.32.0-76
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
|
@@ -105,7 +105,7 @@ var CssClassConvert = (props) => {
|
|
|
105
105
|
const elementId = element.id;
|
|
106
106
|
const currentClassesProp = useClassesProp();
|
|
107
107
|
const { setId: setActiveId } = useStyle();
|
|
108
|
-
const [, saveValue] = useSessionStorage(
|
|
108
|
+
const [, saveValue] = useSessionStorage("last-converted-class-generated-name", "app");
|
|
109
109
|
const successCallback = (newId) => {
|
|
110
110
|
if (!props.styleDef) {
|
|
111
111
|
throw new Error("Style definition is required for converting local class to global class.");
|
|
@@ -956,7 +956,8 @@ function CssClassItem(props) {
|
|
|
956
956
|
const { onDelete, ...chipGroupProps } = chipProps;
|
|
957
957
|
const { userCan } = useUserStylesCapability3();
|
|
958
958
|
const [convertedFromLocalId, , clearConvertedFromLocalId] = useSessionStorage2(
|
|
959
|
-
|
|
959
|
+
"last-converted-class-generated-name",
|
|
960
|
+
"app"
|
|
960
961
|
);
|
|
961
962
|
const {
|
|
962
963
|
ref,
|
|
@@ -979,7 +980,7 @@ function CssClassItem(props) {
|
|
|
979
980
|
clearConvertedFromLocalId();
|
|
980
981
|
openEditMode();
|
|
981
982
|
}
|
|
982
|
-
}, [id]);
|
|
983
|
+
}, [id, convertedFromLocalId]);
|
|
983
984
|
return /* @__PURE__ */ React9.createElement(ThemeProvider, { palette: "default" }, /* @__PURE__ */ React9.createElement(
|
|
984
985
|
UnstableChipGroup,
|
|
985
986
|
{
|