Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 61d9665

Browse files
committed
Removing 'getFieldFromState' prop from being passed onto elements. Fixes #468
1 parent 1ba54c5 commit 61d9665

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/control-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const findDOMNode = !isNative
2929
? require('react-dom').findDOMNode
3030
: null;
3131

32-
const disallowedProps = ['changeAction'];
32+
const disallowedProps = ['changeAction', 'getFieldFromState'];
3333

3434
function containsEvent(events, event) {
3535
if (typeof events === 'string') {

src/components/field-component.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ const fieldPropTypes = {
6060

6161
// Calculated props
6262
fieldValue: PropTypes.object,
63+
64+
// TODO: refactor
65+
getFieldFromState: PropTypes.func,
6366
};
6467

6568
function mapStateToProps(state, props) {

0 commit comments

Comments
 (0)