Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed May 13, 2020
1 parent 7507462 commit 16aa7a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/editor/render.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ export const Leaf = ({ attributes, leaf, children }) => {
return leaf[name] ? availableLeafs[name]({ children: acc }) : acc;
}, children);

let modifiedAttrs = { ...attributes };
delete modifiedAttrs['data-slate-leaf'];
return <Fragment {...modifiedAttrs}>{children}</Fragment>;
return <span {...attributes}>{children}</span>;
};

export const plaintext_serialize = nodes => {
Expand Down

0 comments on commit 16aa7a0

Please sign in to comment.