@elementor/editor-interactions 4.1.0-815 → 4.1.0-816

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.js CHANGED
@@ -1927,10 +1927,14 @@ var import_editor_elements6 = require("@elementor/editor-elements");
1927
1927
  var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
1928
1928
  function initCleanInteractionIdsOnDuplicate() {
1929
1929
  (0, import_editor_v1_adapters5.registerDataHook)("after", "document/elements/duplicate", (_args, result) => {
1930
+ if (!result || typeof result === "boolean" && result === false) {
1931
+ return;
1932
+ }
1930
1933
  const containers = Array.isArray(result) ? result : [result];
1931
1934
  containers.forEach((container) => {
1932
1935
  cleanInteractionIdsRecursive(container.id);
1933
1936
  });
1937
+ window.dispatchEvent(new CustomEvent("elementor/element/update_interactions"));
1934
1938
  });
1935
1939
  }
1936
1940
  function cleanInteractionIdsRecursive(elementId) {