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.
1 parent 8f5ba69 commit ebdcc41Copy full SHA for ebdcc41
packages/renderer-core/src/renderer/base.tsx
@@ -429,7 +429,14 @@ export default function baseRendererFactory(): IBaseRenderComponent {
429
430
__createDom = () => {
431
const { __schema, __ctx, __components = {} } = this.props;
432
- const scope: any = {};
+ // merge defaultProps
433
+ const scopeProps = {
434
+ ...__schema.defaultProps,
435
+ ...this.props,
436
+ };
437
+ const scope: any = {
438
+ props: scopeProps,
439
440
scope.__proto__ = __ctx || this;
441
442
const _children = getSchemaChildren(__schema);
0 commit comments