mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-15 19:54:02 +02:00
fix: ts error (#3179)
This JSX tag's 'children' prop expects a single child of type 'Element', but multiple children were provided.
This commit is contained in:
committed by
Ian Storm Taylor
parent
012d5d5086
commit
b4c15e13c1
@@ -28,7 +28,7 @@ export const SlateContext = createContext<[Editor] | null>(null)
|
|||||||
|
|
||||||
export const Slate = (props: {
|
export const Slate = (props: {
|
||||||
editor: Editor
|
editor: Editor
|
||||||
children: JSX.Element
|
children: JSX.Element | JSX.Element[]
|
||||||
defaultValue?: Node[]
|
defaultValue?: Node[]
|
||||||
onChange?: (children: Node[], operations: Operation[]) => void
|
onChange?: (children: Node[], operations: Operation[]) => void
|
||||||
}) => {
|
}) => {
|
||||||
|
Reference in New Issue
Block a user