fix: incorrect key property in Tabs field component (#4311)

Fixes #4282
This commit is contained in:
Alessio Gravili
2023-11-29 22:18:40 +01:00
committed by GitHub
parent b8fa61942e
commit 3502ce720b
11 changed files with 126 additions and 29 deletions

View File

@@ -13,14 +13,16 @@ export function slateEditor(
args: AdapterArguments,
): RichTextAdapter<any[], AdapterArguments, AdapterArguments> {
return {
CellComponent: withMergedProps({
Component: RichTextCell,
toMergeIntoProps: args,
}),
FieldComponent: withMergedProps({
Component: RichTextField,
toMergeIntoProps: args,
}),
CellComponent: () =>
withMergedProps({
Component: RichTextCell,
toMergeIntoProps: args,
}),
FieldComponent: () =>
withMergedProps({
Component: RichTextField,
toMergeIntoProps: args,
}),
outputSchema: ({ isRequired }) => {
return {
items: {