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.
2 parents 0bf7fcf + 9a897f2 commit b20223cCopy full SHA for b20223c
.changeset/big-snails-deny.md
@@ -0,0 +1,5 @@
1
+---
2
+'@udecode/plate-core': patch
3
4
+
5
+Fix `DefaultLeaf` missing style attribute
packages/core/src/react/components/DefaultLeaf.tsx
@@ -2,6 +2,14 @@ import React from 'react';
import type { PlateRenderLeafProps } from '../plugin/PlateRenderLeafProps';
-export function DefaultLeaf({ attributes, children }: PlateRenderLeafProps) {
6
- return <span {...attributes}>{children}</span>;
+export function DefaultLeaf({
+ attributes,
7
+ children,
8
+ style,
9
+}: PlateRenderLeafProps & { style?: React.CSSProperties }) {
10
+ return (
11
+ <span {...attributes} style={style}>
12
+ {children}
13
+ </span>
14
+ );
15
}
0 commit comments