mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG work-around for form property on formfields not working
This commit is contained in:
parent
f520a846c5
commit
d3177ef94c
2
admin/client/dist/js/bundle.js
vendored
2
admin/client/dist/js/bundle.js
vendored
@ -322,7 +322,7 @@ n=l({},n,n.input),delete n.input
|
||||
var i=this.props.createFn
|
||||
return"function"==typeof i?i(r,n):f.default.createElement(r,l({key:n.id},n))}},{key:"mapFieldsToComponents",value:function e(t){var n=this,r=this.props.baseFieldComponent
|
||||
return t.map(function(e){var t=e
|
||||
return e.children&&(t=l({},e,{children:n.mapFieldsToComponents(e.children)})),t=l({onAutofill:n.props.onAutofill,form:n.props.form},t),"Structural"===e.type||e.readOnly===!0?n.buildComponent(t):f.default.createElement(r,l({
|
||||
return e.children&&(t=l({},e,{children:n.mapFieldsToComponents(e.children)})),t=l({onAutofill:n.props.onAutofill,formid:n.props.form},t),"Structural"===e.type||e.readOnly===!0?n.buildComponent(t):f.default.createElement(r,l({
|
||||
key:t.id},t,{component:n.buildComponent}))})}},{key:"mapActionsToComponents",value:function e(t){var n=this
|
||||
return t.map(function(e){var t=l({},e)
|
||||
return e.children?t.children=n.mapActionsToComponents(e.children):(t.handleClick=n.handleAction,n.props.submitting&&n.state.submittingAction===e.name&&(t.loading=!0)),n.buildComponent(t)})}},{key:"normalizeFields",
|
||||
|
@ -187,7 +187,7 @@ class FormBuilder extends SilverStripeComponent {
|
||||
props = Object.assign(
|
||||
{
|
||||
onAutofill: this.props.onAutofill,
|
||||
form: this.props.form,
|
||||
formid: this.props.form,
|
||||
},
|
||||
props
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user