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(