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 402d948 commit 9dc8033Copy full SHA for 9dc8033
src/formBuilder/index.js
@@ -216,12 +216,15 @@ export default class FormBuilder extends Component {
216
updateValue: this.onValueChange,
217
};
218
if (customComponents) {
219
- const CustomComponent = customComponents[field.type];
220
- if (CustomComponent) {
+ const CustomComponentObj = customComponents[field.type];
+ if (CustomComponentObj) {
221
+ const CustomComponent = CustomComponentObj.component;
222
+ const CustomComponentProps = CustomComponentObj.props;
223
return (
224
<CustomComponent
225
ref={(c) => { this[field.name] = c; }}
226
{... commonProps}
227
+ {...CustomComponentProps}
228
onSummitTextInput={this.onSummitTextInput}
229
/>
230
);
0 commit comments