@elementor/editor-global-classes 3.33.0-286 → 3.33.0-288

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
@@ -2284,16 +2284,17 @@ function syncDirtyState() {
2284
2284
  });
2285
2285
  }
2286
2286
  function bindSaveAction(panelActions) {
2287
- registerDataHook("after", "document/save/save", (args) => {
2287
+ registerDataHook("dependency", "document/save/save", (args) => {
2288
2288
  const user = getCurrentUser();
2289
2289
  const canEdit = user?.capabilities.includes(UPDATE_CLASS_CAPABILITY_KEY);
2290
2290
  if (!canEdit) {
2291
- return;
2291
+ return true;
2292
2292
  }
2293
2293
  saveGlobalClasses({
2294
2294
  context: args.status === "publish" ? "frontend" : "preview",
2295
2295
  onApprove: panelActions?.open
2296
2296
  });
2297
+ return true;
2297
2298
  });
2298
2299
  }
2299
2300
  function isDirty() {