From e20c8a2d3ab7fad987549f763ec107980a8fa2ca Mon Sep 17 00:00:00 2001 From: zbeyens Date: Fri, 20 Dec 2024 04:01:01 +0100 Subject: [PATCH] fix --- packages/plate-utils/src/react/PlateElement.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/plate-utils/src/react/PlateElement.tsx b/packages/plate-utils/src/react/PlateElement.tsx index 4f1f0b418e..fbcccabe31 100644 --- a/packages/plate-utils/src/react/PlateElement.tsx +++ b/packages/plate-utils/src/react/PlateElement.tsx @@ -20,8 +20,14 @@ export type PlateElementProps< PlateRenderElementProps; export const usePlateElement = (props: PlateElementProps) => { - const { attributes, element, elementToAttributes, nodeProps, ...rootProps } = - omitPluginContext(props); + const { + attributes, + element, + elementToAttributes, + nodeProps, + path, + ...rootProps + } = omitPluginContext(props); const mounted = usePlateStore().get.isMounted(); const block = React.useMemo(