File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
mesop/web/src/component_renderer Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ export class ComponentRenderer {
213
213
} ;
214
214
}
215
215
const componentClass = typeName . getCoreModule ( )
216
- ? typeToComponent [ typeName . getFnName ( ) ! ]
216
+ ? typeToComponent [ typeName . getFnName ( ) ! ] || UserDefinedComponent // Some core modules rely on UserDefinedComponent
217
217
: UserDefinedComponent ;
218
218
// Need to insert at insertionRef and *not* viewContainerRef, otherwise
219
219
// the component (e.g. <mesop-text> will not be properly nested inside <component-renderer>).
Original file line number Diff line number Diff line change @@ -66,9 +66,7 @@ export const typeToComponent = {
66
66
// Textarea is a special case where it's exposed as a separate
67
67
// component / API, but the implementation is almost identical as Input.
68
68
'textarea' : InputComponent ,
69
- 'button' : UserDefinedComponent ,
70
69
'content_button' : ButtonComponent ,
71
- 'checkbox' : UserDefinedComponent ,
72
70
'content_checkbox' : CheckboxComponent ,
73
71
'text' : TextComponent ,
74
72
'markdown' : MarkdownComponent ,
You can’t perform that action at this time.
0 commit comments