Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Dec 20, 2024
1 parent aeb19a1 commit e20c8a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/plate-utils/src/react/PlateElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ export type PlateElementProps<
PlateRenderElementProps<N, P>;

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(
Expand Down

0 comments on commit e20c8a2

Please sign in to comment.