You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you were expecting: FormDataConsumer should provide form data object with custom from name or where form name is not record-form.
What happened instead:
Returns an empty object.
Steps to reproduce:
Give custom form name inside TabbedForm
Related code:
classVoucherCreateextendsComponent{render(){return(<Createtitle="Voucher"{...this.props}><TabbedFormform="my-custom-form-name"><FormTablabel="Details"><TextInputsource="voucher_no"/><ReferenceInputsource="student_id"reference="students"perPage={5}><AutocompleteInputoptionText="name"/></ReferenceInput><FormDataConsumer>{({formData, ...rest})=>{console.log(formData);// Should print the form data}</FormDataConsumer>
</FormTab></TabbedForm></Create>);}}
Environment
React-admin version: 2.3.4
Last version that did not exhibit the issue (if applicable): N/A
React version: 16.3.2
Browser: Chrome
The text was updated successfully, but these errors were encountered:
What you were expecting:
FormDataConsumer
should provide form data object with custom from name or where form name is notrecord-form
.What happened instead:
Returns an empty object.
Steps to reproduce:
Give custom form name inside
TabbedForm
Related code:
Environment
The text was updated successfully, but these errors were encountered: