We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6eb96c commit 7a9bc0bCopy full SHA for 7a9bc0b
packages/editor/src/Editor.tsx
@@ -915,6 +915,8 @@ const EditorContent = ({
915
}
916
917
if (event.data.type === "@easyblocks-editor/paste-items") {
918
+ console.log(focussedField);
919
+
920
actions.pasteItems(event.data.payload.configs);
921
922
@@ -1059,7 +1061,7 @@ const EditorContent = ({
1059
1061
window.addEventListener("message", handleEditorEvents);
1060
1062
1063
return () => window.removeEventListener("message", handleEditorEvents);
- }, []);
1064
+ }, [focussedField]);
1065
1066
const shopstoryCanvasIframe = useRef<HTMLIFrameElement | null>(null);
1067
0 commit comments