diff --git a/src/factory.tsx b/src/factory.tsx index c67d1bdde..a24faa944 100644 --- a/src/factory.tsx +++ b/src/factory.tsx @@ -510,7 +510,7 @@ class SchemaRenderer extends React.Component { render: this.renderChild }); } else if (typeof schema.component === 'function') { - return React.createElement(schema.children as any, { + return React.createElement(schema.component as any, { ...rest, $path: $path, render: this.renderChild