pass getLabel as child context

This commit is contained in:
ochicf 2018-06-27 19:53:21 +02:00
parent 198d912be7
commit c8ae445720

View file

@ -448,6 +448,7 @@ class Form extends Component {
addToDeletedValues: this.addToDeletedValues,
updateCurrentValues: this.updateCurrentValues,
getDocument: this.getDocument,
getLabel: this.getLabel,
initialDocument: this.state.initialDocument,
setFormState: this.setFormState,
addToSubmitForm: this.addToSubmitForm,
@ -888,6 +889,7 @@ Form.childContextTypes = {
isChanged: PropTypes.func,
initialDocument: PropTypes.object,
getDocument: PropTypes.func,
getLabel: PropTypes.func,
submitForm: PropTypes.func,
errors: PropTypes.array,
currentValues: PropTypes.object,